-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
The code below creates an RStudio project file and .Rproj.user folder, in addtion to restarting RStudio.
Require::Require("PredictiveEcology/SpaDES.project@windowsTesting")
out <- setupProject(name = "LandRDemo_coreVeg",
options = list("reproducible.useTerra" = TRUE),
paths = list(projectPath = "D:/GitHub/LandR-tutorials/LandRDemo_coreVeg",
modulePath = "D:/GitHub/LandR-tutorials/LandRDemo_coreVeg/modules",
scratchPath = tempdir(),
packagePath = "D:/GitHub/LandR-tutorials/packages"),
modules = c("PredictiveEcology/Biomass_speciesData@terra-migration",
"PredictiveEcology/Biomass_borealDataPrep@terra-migration",
"PredictiveEcology/Biomass_speciesParameters@development",
"PredictiveEcology/Biomass_core@terra-migration",
"PredictiveEcology/Biomass_validationKNN@development"),
Restart = TRUE
)
When, Restart = FALSE, however the RStudio project file and .Rproj.user folder are not created. Is this intended?
I'm thinking it may be good to create the RStudio project file and .Rproj.user even if not restarting (i.e. when Restart = FALSE), as a user may want to use the code above in a "discardable" script to initiate the project and then open the project directly from RStudio at a later date.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels