From 1e2c166ed808b76d7cf493857d2b5ef4075c5fad Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 21 May 2020 22:34:49 -0400 Subject: [PATCH] notes on setting R up in Jupyter --- jupyter/r.md | 10 +++++++++- jupyter/setup.md | 6 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/jupyter/r.md b/jupyter/r.md index eed553d..f2d4bf1 100644 --- a/jupyter/r.md +++ b/jupyter/r.md @@ -1,3 +1,11 @@ +installation +--------------------------------------- +* to install R on ubuntu can to [r download page](https://cran.r-project.org/) +* there are instruction on what to add to sources.list. +* After doing apt-get update, will probably need to add the public key which is addressed [here](https://askubuntu.com/questions/13065/how-do-i-fix-the-gpg-error-no-pubkey#15272) +* then do `sudo apt-get install r-base` + + using grid.arrange https://cran.r-project.org/web/packages/gridExtra/vignettes/arrangeGrob.html @@ -31,4 +39,4 @@ for (i in dim1) { print(j); } } -``` \ No newline at end of file +``` diff --git a/jupyter/setup.md b/jupyter/setup.md index 31d4675..ac50378 100644 --- a/jupyter/setup.md +++ b/jupyter/setup.md @@ -1,8 +1,8 @@ install R kernel for jupyter to use * `sudo R` -* `install.packages('IRkernel')` -* `IRkernel::installspec()` +* `install.packages('IRkernel')` (most likely have to run R under sudo) +* `IRkernel::installspec()` (don't use sudo R) run on network: `jupyter notebook --ip 10.0.10.15 --port 8888` @@ -11,4 +11,4 @@ run on network: basic packages: * ggplot2, plyr, ggExtra, scales -issues with connectin to kernel, atempting update of all packages `update.packages(ask = FALSE)` \ No newline at end of file +issues with connectin to kernel, atempting update of all packages `update.packages(ask = FALSE)`