Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix messaging for downloaded module paths #65

Open
CeresBarros opened this issue Jul 12, 2024 · 0 comments
Open

Fix messaging for downloaded module paths #65

CeresBarros opened this issue Jul 12, 2024 · 0 comments

Comments

@CeresBarros
Copy link
Member

This one is something that I forgot to fix, sorry.

The messages about where modules end up (in the case of nested GH modules) does not correspond to the final module paths, because they are "moved" from the "nested folder" to modulePath.

CeresBarros/SpaDES4Dummies@master/modules/speciesAbundance ... Done!
Downloaded copies: 
                                               moduleFullName     status                                                                     modulePath
                                                       <char>     <char>                                                                         <char>
1: CeresBarros/SpaDES4Dummies@master/modules/speciesAbundance downloaded C:/Users/cbarros/Documents/SpaDES4Dummies_Part1/modules/SpaDES4Dummies/modules
2:      CeresBarros/SpaDES4Dummies@master/modules/temperature downloaded C:/Users/cbarros/Documents/SpaDES4Dummies_Part1/modules/SpaDES4Dummies/modules
3:    CeresBarros/SpaDES4Dummies@master/modules/speciesTempLM downloaded C:/Users/cbarros/Documents/SpaDES4Dummies_Part1/modules/SpaDES4Dummies/modules
  done setting up modules

So the modulePath column the printed table should show "C:/Users/cbarros/Documents/SpaDES4Dummies_Part1/modules/", which is where modules are actually ending up in

Reprex:

options(repos = c("https://predictiveecology.r-universe.dev/", 
                  CRAN = "https://cloud.r-project.org"))
install.packages(c("SpaDES.project", "SpaDES.core"))

library(SpaDES.project)

setupModules(paths = list(projectPath = "~/SpaDES4Dummies_Part1",
                          modulePath = "modules"),
             modules = c("CeresBarros/SpaDES4Dummies@master/modules/speciesAbundance",
                         "CeresBarros/SpaDES4Dummies@master/modules/temperature",
                         "CeresBarros/SpaDES4Dummies@master/modules/speciesTempLM"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant