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)



an RxComputeContext or equivalent character string or NULL. If set to the default of NULL, the currently active compute context is used. Supported compute contexts are RxInSqlServer and RxLocalSeq.




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 = "NA".


logical. If 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. If NULL, the following fields are used: "Package", "LibPath", "Version", "Priority", "Depends", "Imports", "LinkingTo", "Suggests", "Enhances", "License", "License_is_FOSS", "License_restricts_use", "OS_type", "MD5sum", "NeedsCompilation", and "Built". Unavailable fields result in NA values.


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. Note that rxInstalledPackages treats the field argument differently, only returning the fields specified in the argument.


By default, a character vector of installed packages is returned. If fields is not set to "Package", a matrix with one row per package is returned. The row names are the package names and the possible column names are "Package", "LibPath", "Version", "Priority", "Depends", "Imports", "LinkingTo", "Suggests", "Enhances", "License", "License_is_FOSS", "License_restricts_use", "OS_type", "MD5sum", "NeedsCompilation", and "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 TRUE, 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 "system", "shared" and "private" scopes.


Microsoft Corporation Microsoft Technical Support

See Also

rxPackage, installed.packages, rxFindPackage, rxInstallPackages,
rxRemovePackages, rxSyncPackages, rxSqlLibPaths,


 # Find the packages installed for the current compute context
 myPackages <- rxInstalledPackages()

 # Get full information about all the packages installed for the current compute context
 myPackageInfo <- rxInstalledPackages(fields = NULL)

 # Get specific information about the installed packages
 myPackageInfo <- rxInstalledPackages(fields = c("Package", "Version", "Built"))

 ## 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)
## End(Not run)