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

Set option for destdir #1015

Closed
malcolmbarrett opened this issue Feb 13, 2020 · 0 comments · Fixed by #1033
Closed

Set option for destdir #1015

malcolmbarrett opened this issue Feb 13, 2020 · 0 comments · Fixed by #1033
Labels
course 👩‍🏫 feature a feature request or enhancement

Comments

@malcolmbarrett
Copy link
Collaborator

In create_from_github(), use_course(), and use_zip(), usethis tries to guess a good download location if destdir is NULL. I think it would be nice to also set an option in your .Rprofile to specify a default location, e.g. usethis.destdir. I believe this would only entail a simple change to conspicuous_place(), which would check if such an option is set and return that location if so, otherwise going on with its usual business. Happy to make a PR if agreeable!

@hadley hadley added course 👩‍🏫 feature a feature request or enhancement labels Mar 14, 2020
hadley pushed a commit that referenced this issue Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
course 👩‍🏫 feature a feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants