-
Notifications
You must be signed in to change notification settings - Fork 7
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
reproducible.destinationPath not set when supplying inputPath to paths in setupProject #24
Comments
|
We commonly use the following construct in modules to ensure inputs get to the correct location (e.g., the module's .inputObjects <- function(sim) {
dPath <- asPath(getOption("reproducible.destinationPath", dataPath(sim)), 1)
message(currentModule(sim), ": using dataPath '", dPath, "'.")
...
return(invisible(sim)
} At the top (project) level, setting |
I don't understand the problem. |
Not setting What is the point of using |
|
Please implement this within the |
They have used the same path in multiple projects, starting with LandWeb, and have been working great. Different modules doing different things with downloaded data is expected and appropriate. Where they could collide is if they overwrite things - but that's why we use different file names for these intermediate input/outputs (e.g. with
destinationPath is an option, set globally, so it cannot be module-specific. we have been aware of the behaviour (we designed it) and have used it across multiple projects, so it's surprising that this has changed here. |
We have very different memories :) The reason it isn't set in I think we should keep using it in the same way we always have, i.e., flexibly and different than the others. However, I can live with it if you want to implement it in the |
@achubaty did you implement this yet? I think the options were either:
|
this has not been implemented because there is disagreement over why and how to implement. this has typically been set at the project level.
|
To he clear: I have never set it at the project level and don't want it to be set at the project level for me and my projects. So whatever your solution, just make it backward compatible for people who aren't using it this way. |
currently need to manually set this in order to get modules to look in 'inputs':
The text was updated successfully, but these errors were encountered: