Skip to content

setupProject(..., Restart = TRUE) creates RStudio project, but setupProject(..., Restart = FALSE) doesn't #38

@CeresBarros

Description

@CeresBarros

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions