Odd question about R packages

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

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

Nope wich is why I think its so odd.

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

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

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