binder-examples / r

Using R with Jupyter / RStudio on Binder
BSD 3-Clause "New" or "Revised" License
222 stars 278 forks source link

install.R does not appear to run when launching the RStudio instance #7

Closed RaoOfPhysics closed 6 years ago

RaoOfPhysics commented 6 years ago

If you head to http://beta.mybinder.org/v2/gh/binder-examples/r/master?urlpath=rstudio from the README file and try to play with index.Rmd, you get an error when attempting to execute the first code chunk:

Error in library(ggplot2) : there is no package called ‘ggplot2’

It seems that the packages from install.R don't get installed when launching the RStudio instance.

If I first run install.R within RStudio (running source("install.R") in the Console, the error message doesn't appear and all works well.

Can this file be made to run when the RStudio instance is launched?

choldgraf commented 6 years ago

hey @RaoOfPhysics - I think you actually caught the same bug that I noticed a couple days ago :-)

I added an issue about in the repo2docker repo here: https://github.com/jupyter/repo2docker/issues/237

Feel free to chime in there!

RaoOfPhysics commented 6 years ago

Hey, @choldgraf. Yup, I already commented there: https://github.com/jupyter/repo2docker/issues/237#issuecomment-366813692 Should probably close this issue then and re-direct conversations to the repo2docker thread. :)