Programmer en R/Choisir son environnement de travail
Terminal Modifier
On peut lancer R dans un terminal et travailler directement en ligne de commande.
Radian Modifier
Radian permet d'avoir une interface améliorée dans le terminal. Le projet s'inspire de iPython[1].
RStudio Modifier
RStudio est l'environnement de travail le plus couramment utilisé pour travailler avec R. RStudio peut-être installé sur l'ordinateur local ou sur un serveur.
Jupyter Notebook Modifier
Jupyter Notebook est une interface utilisateur très couramment employée pour travailler avec Python et Julia. Il est possible d'installer un noyau pour travailler avec R dans Jupyter Notebook.
Un notebook permet de combiner du texte et du code dans un même document.
Comme RStudio, Jupyter Notebook peut être installé localement ou sur un serveur.
Installation Modifier
Au préalable, il faut avoir installé Jupyter[2]
$ pip3 install jupyter
Après avoir installé Jupyter, il faut installer le noyau R[3] depuis un terminal R ouvert :
install.packages(c('repr', 'IRdisplay', 'crayon', 'pbdZMQ', 'devtools'))
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec() # to register the kernel in the current R installation