R built-in charts in Jupyter

I am trying to run R in Jupyter through the Binder project interface, although the question may be more general. For example, this question may be related to the long sleeper about Jupyter on Mac OS. I have r-essentials, r-rzmq and r-repr added via conda . IRKernel and IRDisplay are part of r-essentials. However, when I try to build something, there is no way out. Indeed, it seems that there are no graphics output options. What am I missing here? There are no problems in python laptops but no luck with R.

capabilities()
jpeg FALSE
png FALSE
tiff FALSE
tcltk TRUE
X11 FALSE
aqua FALSE
http/ftp TRUE
sockets TRUE
libxml TRUE
fifo TRUE
cledit FALSE
iconv TRUE
NLS TRUE
profmem TRUE
cairo FALSE
ICU TRUE
long.double TRUE
libcurl TRUE
0
source share
1 answer

, @hrbrmstr "Ugh. ". Docker R apt-get IRKernel CRAN :

# Set default CRAN repo
RUN echo 'options("repos"="http://cran.rstudio.com")' > .Rprofile

# Install IRkernel
RUN Rscript -e "install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))" -e "devtools::install_github('IRkernel/IRkernel')" -e "IRkernel::installspec(user = FALSE)"
0

Source: https://habr.com/ru/post/1609284/


All Articles