-
Notifications
You must be signed in to change notification settings - Fork 47
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
Support additional repositories besides CRAN #160
Comments
yeah, i'd thought we might be able to be clever and pack multiple repos into i can think of two easy options -- and you're exactly the person i'd ask which is more sane! 😁
i'm partial to the first, but you should let me know if it's a terrible idea. alternately, you could add a step to just fetch a stored |
Great minds think alike it seems :) Here is how far I got during my (short) train commute: #!/bin/bash
set -e
#set -x
set -u
CRAN=${CRAN:-"http://cran.rstudio.com"}
## unset by default
DRAT_REPOS=${DRAT_REPOS:-""}
setRepos() {
#echo "CRAN is ${CRAN}"
#echo "DRAT_REPOS are ${DRAT_REPOS}"
echo "local({"
echo " r <- getOption(\"repos\");"
echo " r[\"CRAN\"] <- \"${CRAN}\""
for d in ${DRAT_REPOS}; do
echo " r[\"${d}\"] <- \"https://${d}.github.io/drat\""
done
echo " options(repos=r)"
echo "})"
}
setRepos which then does
Next step is to just echo appending to That is 'good enough for me' as it just loops over drats and uses their implied syntax. Some folks (Hi, @cboettig) insist on different free-form repos (still managed by drat). Then there are of course non-drat repos. Not sure yet how to easily deal with that. |
Tried with this commit (and two more for cleanups), but failed. Too bad. |
I see the @eddelbuettel I do believe R base could have a helper function to append urls to cran repos just for convenience. Maintaining CRAN will not scale if developers will keep the trend. Anyway it would not solve discussed issue which needs to append repos from the travis yml level. |
I use drat to host tar.gz releases which I access from several machines.
It would be beneficial for Travis CI to access these too in lieu of going to GitHub---as I'd then continue to get by without devtools which is needed only for
install_github()
.Now, the code seems somewhat hardwired to using one repo only:
whereas my
Rprofile.site
now defaults to three:I'll see about a way to either add an install command also taking an alternate repo, or to add REPO2, REPO3, ... if set.
The text was updated successfully, but these errors were encountered: