projectId: Retrieves projectId of SyncroSim Project or Scenario

Description Usage Arguments Value Examples

Description

Retrieves the projectId of a SyncroSim Project or Scenario.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
projectId(ssimObject)

## S4 method for signature 'character'
projectId(ssimObject)

## S4 method for signature 'Project'
projectId(ssimObject)

## S4 method for signature 'Scenario'
projectId(ssimObject)

Arguments

ssimObject

Scenario or Project object

Value

An integer: project id.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Set the file path and name of the new SsimLibrary
myLibraryName <- file.path(tempdir(),"testlib")

# Set the SyncroSim Session, SsimLibrary, Project, and Scenario
mySession <- session()
myLibrary <- ssimLibrary(name = myLibraryName, session = mySession) 
myProject <- project(myLibrary, project = "Definitions")
myScenario <- scenario(myProject, scenario = "My Scenario")

# Get Project ID for SyncroSim Project and Scenario
projectId(myProject)
projectId(myScenario)

rsyncrosim documentation built on Oct. 28, 2021, 1:07 a.m.