Retrieves or sets whether or not a SsimLibrary
,
Project
, Scenario
, or Folder
is
read-only.
Usage
readOnly(ssimObject)
# S4 method for class 'character'
readOnly(ssimObject)
# S4 method for class 'SsimLibrary'
readOnly(ssimObject)
# S4 method for class 'Project'
readOnly(ssimObject)
# S4 method for class 'Scenario'
readOnly(ssimObject)
# S4 method for class 'Folder'
readOnly(ssimObject)
# S4 method for class 'Chart'
readOnly(ssimObject)
readOnly(ssimObject) <- value
# S4 method for class 'character'
readOnly(ssimObject) <- value
# S4 method for class 'SsimObject'
readOnly(ssimObject) <- value
# S4 method for class 'Folder'
readOnly(ssimObject) <- value
# S4 method for class 'Chart'
readOnly(ssimObject) <- value
Arguments
- ssimObject
Scenario
,Project
,SsimLibrary
, orFolder
object- value
logical. If
TRUE
the SsimObject will be read-only. Default isFALSE
Examples
# \donttest{
# Specify file path and name of new SsimLibrary
myLibraryName <- file.path(tempdir(), "testlib")
# Set up a SyncroSim Session, SsimLibrary, Project, Scenario, and Folder
mySession <- session()
myLibrary <- ssimLibrary(name = myLibraryName, session = mySession)
myProject <- project(myLibrary, project = "Definitions")
myScenario <- scenario(myProject, scenario = "My Scenario")
myFolder <- folder(myProject, "My Folder")
# Retrieve the read-only status of a SsimObject
readOnly(myLibrary)
#> [1] FALSE
readOnly(myProject)
#> [1] FALSE
readOnly(myScenario)
#> [1] FALSE
readOnly(myFolder)
#> [1] FALSE
# Set the read-only status of a SsimObject
readOnly(myScenario) <- TRUE
# }