-
Notifications
You must be signed in to change notification settings - Fork 51
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
add option to override the cloud CRAN mirror for installing dependencies #67
Conversation
My first gut instinct was ... doesn't this come by default via |
Oh, sure, |
Would this help? Default for the last few Debian releases. But I guess we can add the option. |
But I think your current suggested default of |
Thanks, I've just updated the default value. But if you don't feel comfortable merging this, no worries, I'll do the |
inst/examples/installGithub.r
Outdated
@@ -13,8 +13,9 @@ suppressMessages({ | |||
}) | |||
|
|||
## configuration for docopt | |||
doc <- "Usage: installGithub.r [-h] [-x] [-d DEPS] [-u UPDATE] [REPOS...] | |||
doc <- "Usage: installGithub.r [-r DEPREPO...] [-h] [-x] [-d DEPS] [-u UPDATE] [REPOS...] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I think the three dots here have special meaning ... which we do not want.
Also, as I have been picking so much, twothree more changes:
- can we renamed it to CRAN rather than DEPREPO ? Shorter, simpler, obvious default
- can you place it behind
[-u UPDATE]
here and below it below? - can you add an entry to ChangeLog?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I think the three dots here have special meaning ... which we do not want.
Yeah, that looked strange to me as well, but that's how it's being used in install2.r
and I thought that's part of your coding style :P So I decided to do this for the sake of consistency. Changing it in a sec.
Well if locally setting works then we should do that. What happens now for you with |
Sure, I've tested before submitting the PR both with Will do the above changes later today, thanks! I'm not sure regarding the deprepo -> CRAN rename thought, as it could be something else too, eg a drat repo and it's called |
Yes, but we use |
So maybe the simpler fix is to have a new variable |
I'm happy to update the PR as per your suggestion to have For the sake of consistency, I'd rather keep the option name as The Let me push a commit on what I have in mind based on the above and then pls let me know what you think. |
Okay, this is definitely more updates than I originally planned, sorry for that, but I hope looks good. |
Changing |
But I guess on the upside we can now set multiple repos on the command-line.... |
Oh, sorry again, I thought it's better to do these small and non-breaking changes there for the sake of consistency.
I think that was already the case -- it was just not documented and it threw a warning (on comparing multiple values with |
All good -- should be a useful extension. Especially being able to add something like Thanks for working on this! |
This adds a new CLI option for overriding the CRAN mirror to be used to download dependencies. Let me know what you think.