if (FALSE) {
# Install "stsim" if not already installed
installPackage("stsim")
# Set the file path and name of the new SsimLibrary
myLibraryName <- file.path(tempdir(),"testlib.ssim")
# Specify the command line arguments for creating a new stsim SsimLibrary
args <- list(create = NULL, library = NULL,
name = myLibraryName,
package = "stsim")
# Use a default session to create a new SsimLibrary in the current working directory
output <- command(args, session = session(printCmd = TRUE))
output
# Provide arguments to the command line using an unnamed vector
command(c("create", "help"))
# Provide arguments to the command line using a character string
command("--create --help")
# Provide arguments to the command line using a named list
command(list(create = NULL, help = NULL))
# Call on a different program to find all installed packages
command(list(installed = NULL), program = "SyncroSim.PackageManager.exe")
}
Run the code above in your browser using DataLab