folder {rsyncrosim} | R Documentation |
Create or open a Folder
Description
Create or open a Folder
from a SyncroSim
Project
.
Usage
folder(ssimObject = NULL, folder = NULL, parentFolder = NULL, create = FALSE)
Arguments
ssimObject |
|
folder |
character or integer. If character, then will either open an
existing folder if |
parentFolder |
character, integer, or SyncroSim Folder object. If not
|
create |
logical. Whether to create a new folder if the folder name given
already exists in the SyncroSim library. If |
Value
A Folder
object representing a SyncroSim folder.
Examples
## 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)
## End(Not run)