# Odd question about R packages

**URL:** <https://discourse.jupyter.org/t/odd-question-about-r-packages/396>\
**Category:** repo help\
**Created:** [February 13, 2019, 10:31pm UTC](https://discourse.jupyter.org/t/odd-question-about-r-packages/396 "2019-02-13T22:31:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JenLowe](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/jenlowe/32/196_2.png) [@JenLowe](https://discourse.jupyter.org/u/JenLowe)\
**Post date:** [February 13, 2019, 10:31pm UTC](https://discourse.jupyter.org/t/odd-question-about-r-packages/396/1 "2019-02-13T22:31:18Z")

</div>

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](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](https://github.com/GeoNet/data-tutorials)

---

<div class="post-metadata">

**Author:** ![choldgraf](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/choldgraf/32/1264_2.png) [@choldgraf](https://discourse.jupyter.org/u/choldgraf)\
**Post date:** [February 14, 2019, 2:09am UTC](https://discourse.jupyter.org/t/odd-question-about-r-packages/396/2 "2019-02-14T02:09:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JenLowe](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/jenlowe/32/196_2.png) [@JenLowe](https://discourse.jupyter.org/u/JenLowe)\
**Post date:** [February 14, 2019, 3:17am UTC](https://discourse.jupyter.org/t/odd-question-about-r-packages/396/3 "2019-02-14T03:17:26Z")

</div>

Nope wich is why I think its so odd.

---

<div class="post-metadata">

**Author:** ![choldgraf](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/choldgraf/32/1264_2.png) [@choldgraf](https://discourse.jupyter.org/u/choldgraf)\
**Post date:** [February 14, 2019, 6:42pm UTC](https://discourse.jupyter.org/t/odd-question-about-r-packages/396/4 "2019-02-14T18:42:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JenLowe](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/jenlowe/32/196_2.png) [@JenLowe](https://discourse.jupyter.org/u/JenLowe)\
**Post date:** [February 14, 2019, 7:57pm UTC](https://discourse.jupyter.org/t/odd-question-about-r-packages/396/5 "2019-02-14T19:57:36Z")

</div>

I am using `runtime.txt` [https://mybinder.readthedocs.io/en/latest/config\_files.html#runtime-txt-specifying-runtimes](https://mybinder.readthedocs.io/en/latest/config_files.html#runtime-txt-specifying-runtimes)

---

<div class="post-metadata">

**Author:** ![choldgraf](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/choldgraf/32/1264_2.png) [@choldgraf](https://discourse.jupyter.org/u/choldgraf)\
**Post date:** [February 14, 2019, 10:22pm UTC](https://discourse.jupyter.org/t/odd-question-about-r-packages/396/6 "2019-02-14T22:22:21Z")

</div>

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