Skip to content

Fix messaging for downloaded module paths #65

@CeresBarros

Description

@CeresBarros

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"))

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