Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upadd 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 |
| @@ -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...] | |||
eddelbuettel
Jan 30, 2019
Owner
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?
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?
daroczig
Jan 30, 2019
Author
Contributor
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.
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.... |
68b58e0
into
eddelbuettel:master
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.