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

Allow setting alternate default paths #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

noamross
Copy link
Contributor

@noamross noamross commented Jun 9, 2023

While I appreciate the discipline of only declaring dependencies in ./packages.R, there are conditions that it makes sense to find them across ./R/*.R or other files, and in a project it's best to be consistent across this. This PR allows users to set a default path for all dep_source_path arguments using either options(capsule.sources = <PATHS>) or a CAPSULE_SOURCES environment variable. We would set this in a project-level .Rprofile so capshot(), create(), etc., behave the same for everyone by default.

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

Successfully merging this pull request may close these issues.

1 participant