Odd question about R packages


#1

Hi, I have an odd question. So, to get my R packages to install in anaconda I must give the packages a source eg. install.packages(“maps”, repos = “http://cran.us.r-project.org”). When I added this to my install.R file I found that most packages where fine for installing for binder but for some odd reason there were a few that when that didn’t install and I had to use just install.packages(“maps”) and then they were fine. I know that they do install with the other line of code in when running form my computer. Not that it’s a problem now as I fixed it but does anyone know why this happened?

Repo https://github.com/GeoNet/data-tutorials


#2

Hmmm that is weird… Anything I. Particular about the packages that you noticed didn’t work?


#3

Nope wich is why I think its so odd.


#4

does the same thing happen when you use apt.txt to define the R version instead of using conda?


#5

I am using runtime.txt https://mybinder.readthedocs.io/en/latest/config_files.html#runtime-txt-specifying-runtimes


#6

ah sorry, I meant runtime.txt…sorry I was confused because you mentioned conda at the beginning