readOnly | R Documentation |
Retrieves or sets whether or not a SsimLibrary
,
Project
, Scenario
, or Folder
is
read-only.
readOnly(ssimObject)
## S4 method for signature 'character'
readOnly(ssimObject)
## S4 method for signature 'SsimLibrary'
readOnly(ssimObject)
## S4 method for signature 'Project'
readOnly(ssimObject)
## S4 method for signature 'Scenario'
readOnly(ssimObject)
## S4 method for signature 'Folder'
readOnly(ssimObject)
## S4 method for signature 'Chart'
readOnly(ssimObject)
readOnly(ssimObject) <- value
## S4 replacement method for signature 'character'
readOnly(ssimObject) <- value
## S4 replacement method for signature 'SsimObject'
readOnly(ssimObject) <- value
## S4 replacement method for signature 'Folder'
readOnly(ssimObject) <- value
## S4 replacement method for signature 'Chart'
readOnly(ssimObject) <- value
ssimObject |
|
value |
logical. If |
A logical: TRUE
if the SsimObject is read-only and FALSE
otherwise.
## Not run:
# 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)
readOnly(myProject)
readOnly(myScenario)
readOnly(myFolder)
# Set the read-only status of a SsimObject
readOnly(myScenario) <- TRUE
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.