Utilities for projects.
Read the project description.
Initiate the actige processID.
Check or set if a project is running or not.
isProject(projectPath)
isSaved(projectPath)
isOpenProject(projectPath, strict = FALSE)
readProjectDescription(
projectPath,
verbose = FALSE,
projectDescriptionFile = NULL,
applyBackwardCompatibility = TRUE,
formatProcesses = TRUE,
validateJSON = TRUE
)
initiateActiveProcessID(projectPath)
isRunning(projectPath, modelName)
setRunning(projectPath, modelName)
setNotRunning(projectPath, modelName)
The path to the StoX project, i.e., the folder of the project with the sub folders "input", "output" and "process". Can possibly be the path to a file inside the project folder.
Logical: If TRUE, require that all folders of the projectSession folder exist in isOpenProject(). Otherwise only require that the projectSession folder exists.
Logical: If TRUE extra messages are printed to console.
The path to the file holding the projectDescription (project.json).
Logical: If TRUE apply backward compatibility actions when running readProjectDescription
.
Logical: If TRUE format the processes after reading the projectDescription file, ensuring correct primitive types. This has a use of FALSE in readModelData
, but should otherwise be set to TRUE.
Logical: If TRUE validate the project.json.
The name of the model (possible values are "baseline", "analysis" and "report").