Install R to Jupyter: Difference between revisions

(Created page with "In Debian 10: Install Prereqs <pre>sudo apt install dirmngr apt-transport-https ca-certificates software-properties-common gnupg2</pre> Install key <pre>sudo apt-key adv -...")
 
No edit summary
Line 18: Line 18:


<pre>R --version</pre>
<pre>R --version</pre>
Start R
<pre>sudo su
R</pre>
Install JupyterLab Packages
<pre>
install.packages(c('rzmq','repr','IRkernel','IRdisplay'),
                repos = c('http://irkernel.github.io/',
                          getOption('repos')),
                type = 'source')
IRkernel::installspec(user = FALSE)</pre>

Revision as of 02:51, 23 August 2021

In Debian 10:

Install Prereqs

sudo apt install dirmngr apt-transport-https ca-certificates software-properties-common gnupg2

Install key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'

Update packages

sudo apt update
sudo apt install r-base

Test R

R --version

Start R

sudo su
R

Install JupyterLab Packages

install.packages(c('rzmq','repr','IRkernel','IRdisplay'),
                 repos = c('http://irkernel.github.io/', 
                           getOption('repos')), 
                 type = 'source')
IRkernel::installspec(user = FALSE)