Cant install cran packages using apt in Travis r packages specifically

basically, what the title says, is there anything I can do about this? its really affecting our project

Hey @SolarUltima,

Seen a few other issues similar recently. I wrote a workaround for now, please let me know if this works, you can put this in a bash script, or just run it using one of Travis’s before script hooks. This should solve your problem as it worked with others earlier in my workday.

source ~/.environ
 if [[ ! -d "$HOME/R/knitr" ]] ; then
   mkdir -p ~/R
   R -e "install.packages('evaluate', repos = 'http://cran.us.r-project.org', lib='~/R')"  > /dev/null 2>&1
   R -e "install.packages('base64enc', repos = 'http://cran.us.r-project.org', lib='~/R')"  > /dev/null 2>&1
   R -e "install.packages('knitr', repos = 'http://cran.us.r-project.org', lib='~/R')"  > /dev/null 2>&1
 fi
fi

Happy building!
Montana Mendy

1 Like

hey @Montana this work really well for the time being, can you push this further into support? thank you, but as of now it is working - we appreciate the help

Imprint