Learn R Programming

rsyncrosim (version 1.2.9)

session: Creates or returns a SyncroSim session.

Description

Methods to create or return a SyncroSim session.

Usage

session(x = NULL, silent = TRUE, printCmd = FALSE)

# S4 method for missingOrNULLOrChar session(x = NULL, silent = TRUE, printCmd = FALSE)

# S4 method for SsimObject session(x = NULL, silent = TRUE, printCmd = FALSE)

Arguments

x

Character or SsimObject. An optional path to the SyncroSim installation.

silent

Logical. Applies only if x is a path or NULL. If TRUE, warnings from the console are ignored. Otherwise they are printed.

printCmd

Logical. Applies only if x is a path or NULL. If TRUE, arguments passed to the SyncroSim console are also printed. Helpful for debugging. FALSE by default.

Value

A SyncroSim Session object.

Examples

Run this code
# NOT RUN {
# Create Session
temp_dir <- tempdir()
mySession <- session()
myLibrary <- ssimLibrary(name = file.path(temp_dir,"testlib"), session = mySession)

filepath(mySession) # Lists the folder location of SyncroSim session
version(mySession) # Lists the version of SyncroSim session
package(mySession) # Dataframe of the packages installed with this version of SyncroSim
basePackage(mySession) # Dataframe of the base packages installed with this version of SyncroSim
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab