Note: sf
doesn't get installed, use https://github.com/LennertSchepers/minimal_R_spatial instead.
Binder supports using R and RStudio, with libraries pinned to a specific snapshot on MRAN.
You need to have a runtime.txt
file that is formatted like:
r-<YYYY>-<MM>-<DD>
where YYYY-MM-DD is a snapshot at MRAN that will be used for installing libraries.
You can also have an install.R
file that will be executed during build,
and can be used to install libraries.
Both RStudio and IRKernel are installed by default, so you can use either the Jupyter notebook interface or the RStudio interface.