rxInstalledPackages: Installed Packages for Compute Context
Find (or retrieve) details of installed packages for a compute context.
rxInstalledPackages(computeContext = NULL, allNodes = FALSE, lib.loc = NULL, priority = NULL, noCache = FALSE, fields = "Package", subarch = NULL)
a character vector describing the location of R library trees to search through, or
NULL. The default value of
NULL corresponds to checking the loaded namespace, then all libraries currently known in
.libPaths(). In RxInSqlServer only
NULL is supported.
character vector or
NULL (default). If non-null, used to select packages;
"high" is equivalent to
c("base", "recommended"). To select all packages without an assigned priority use priority =
TRUE, do not use cached information, nor cache it.
a character vector giving the fields to extract from each package's DESCRIPTION file, or
NULL, the following fields are used:
"Built". Unavailable fields result in
character string or
NULL. If non-null and non-empty, used to select packages which are installed for that sub-architecture.
This is a wrapper for installed.packages. See the help file for additional details.
rxInstalledPackages treats the
field argument differently, only
fields specified in the argument.
By default, a character vector of installed packages is returned. If
fields is not
"Package", a matrix with one row per package is returned.
The row names are the package names and the possible
column names are
"Built" (the R version the package was built under).
Additional columns can be specified using the fields argument.
If using a distributed compute context with the
allNodes set to
a list of matrices from each node will be returned.
In RxInSqlServer compute context multiple rows for a package will be returned if different versions of the
same package is installed in different
Microsoft Technical Support
# # Find the packages installed for the current compute context # myPackages <- rxInstalledPackages() myPackages # # Get full information about all the packages installed for the current compute context # myPackageInfo <- rxInstalledPackages(fields = NULL) myPackageInfo # # Get specific information about the installed packages # myPackageInfo <- rxInstalledPackages(fields = c("Package", "Version", "Built")) myPackageInfo ## Not run: # # Find the packages installed on a SQL Server compute context # sqlServerCompute <- RxInSqlServer(connectionString = "Driver=SQL Server;Server=myServer;Database=TestDB;Trusted_Connection=True;") sqlPackages <- rxInstalledPackages(computeContext = sqlServerCompute) sqlPackages ## End(Not run)