Skip to content

Storage directory option is being overridden on load #170

@asbates

Description

@asbates

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

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