openpharma / staged.dependencies

R package to implement development stages for package development
https://openpharma.github.io/staged.dependencies/
MIT License
12 stars 3 forks source link

Storage directory option is being overridden on load #170

Open asbates opened 1 year ago

asbates commented 1 year ago

The option staged.dependencies._storage_dir is being overridden if set by user (i.e. in .Rprofile). When the package is loaded, .onLoad calls setup_storage_dir(path.expand("~/.staged.dependencies")). Then setup_storage_dir takes the given path and sets the option.

On Windows ~/.staged.dependencies can be a OneDrive directory which can cause problems (#169). Regardless, we should not be overriding a user-defined option. We should probably clean up after ourselves as well, resetting any options that we set in the package (i.e. .onUnload())

asbates commented 1 year ago

Note: I'm not part of this org so I can't change assignee, label, etc. I am working on this issue.