notes on setting R up in Jupyter

This commit is contained in:
Paul Trowbridge 2020-05-21 22:34:49 -04:00
parent 0904405a46
commit 1e2c166ed8
2 changed files with 12 additions and 4 deletions

View File

@ -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);
}
}
```
```

View File

@ -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)`
issues with connectin to kernel, atempting update of all packages `update.packages(ask = FALSE)`