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

multiple module paths not respected by .checkModuleDirsAndFiles #191

Open
ianmseddy opened this issue Feb 8, 2022 · 1 comment
Open

Comments

@ianmseddy
Copy link
Contributor

ianmseddy commented Feb 8, 2022

Pretty niche, since most folks use 1 module path. But scfm does not - resulting in the following error:

Error in .checkModuleDirsAndFiles(modules = modules, modulePath = sim@paths$modulePath) : 
  These modules:
    Biomass_borealDataPrep, Biomass_regeneration, scfmRegime, scfmIgnition, scfmEscape, scfmSpread, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  don't exist in:
    C:/Ian/Git/testingLandR/modulesC:/Ian/Git/testingLandR/modules/scfm
@achubaty
Copy link
Contributor

achubaty commented Feb 8, 2022

interesting that this is working for me using older version of SpaDES.core. can you confirm the version you are using?

possible workaround for now is to configure symlinks (or similar) so that you can pass a single module dir (C:/Ian/Git/testingLandR/modules) and it will see the scfm modules:

C:/Ian/Git/testingLandR/modules
|_ Biomass_boralDataPrep/
|_ Biomass_regeneration/
|_ scfmRegime --> scfm/scfmRegime
|_ scfmIgnition --> scfm/scfmIgnition
|_ scfmEscape --> scfm/scfmEscape
|_ scfmSpread --> scfm/scfmSpread
etc.

you can set this up in R: see ?file.link / ?file.symlink -- windows won't let you create one of those link type without admin privleges, but I don't recall which one will work.

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

2 participants