folder | R Documentation |
Create or open a Folder
from a SyncroSim
Project
.
folder(
ssimObject = NULL,
folder = NULL,
parentFolder = NULL,
summary = FALSE,
create = FALSE
)
ssimObject |
|
folder |
character or integer. If character, then will either open an
existing folder if |
parentFolder |
character, integer, or SyncroSim Folder object. If not
|
summary |
logical. If |
create |
logical. Whether to create a new folder if the folder name given
already exists in the SyncroSim library. If |
A Folder
object representing a SyncroSim folder.
## Not run:
# 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 = "My Project")
myScenario <- scenario(myProject, scenario = "My Scenario")
# Create a new folder
myFolder <- folder(myProject, folder = "New Folder")
# Create a nested folder within "New Folder"
myNestedFolder <- folder(myProject, folder = "New Nested Folder",
parentFolder = myFolder)
# Retrieve a dataframe of all folders in a project
folder(myProject)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.