-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Documentation of newModule says:
pathCharacter string. Subdirectory in which to place the new module code file. The default is the current working directory.
However, when creating a new module the default path is actually the cache path
> getwd()
[1] "C:/Users/Tati/Documents/GitHub/EFI_webinar"
> SpaDES.core::newModule("testModule")
New module testModule created at C:/Users/Tati/Documents/GitHub/NWT/cache/tmp/RtmpqWw5f7/SpaDES/modules
(...)
> SpaDES.core::getPaths()
$cachePath
[1] "C:/Users/Tati/Documents/GitHub/NWT/cache/tmp\\RtmpqWw5f7/reproducible/cache"
(...)
In my opinion, the documentation expresses the correct behavior, and the module should be created in the current working directory, except if this would break any further functionalities (which I don't believe, but who knows)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels