packages | R Documentation |
Retrieves the packages installed or available in the current session if
called on a Session
object, or the packages added to a
SyncroSim Library if called on a SsimLibrary
object.
packages(ssimObject = NULL, installed = TRUE)
## S4 method for signature 'character'
packages(ssimObject = NULL, installed = TRUE)
## S4 method for signature 'missingOrNULL'
packages(ssimObject = NULL, installed = TRUE)
## S4 method for signature 'Session'
packages(ssimObject = NULL, installed = TRUE)
## S4 method for signature 'SsimLibrary'
packages(ssimObject)
ssimObject |
|
installed |
logical or character. |
Returns a data.frame
of packages installed or templates available
for a specified package.
## Not run:
# Set the file path and name of the new SsimLibrary
myLibraryName <- file.path(tempdir(),"testlib")
# Set the SyncroSim Session and SsimLibrary
mySession <- session()
myLibrary <- ssimLibrary(name = myLibraryName, session = mySession)
# List all installed packages
packages(mySession)
# List all available packages on the server (including currently installed)
packages(installed = FALSE)
# Check the package(s) in your SsimLibrary
packages(myLibrary)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.