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)`