notes on setting R up in Jupyter
This commit is contained in:
parent
0904405a46
commit
1e2c166ed8
10
jupyter/r.md
10
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
|
using grid.arrange
|
||||||
https://cran.r-project.org/web/packages/gridExtra/vignettes/arrangeGrob.html
|
https://cran.r-project.org/web/packages/gridExtra/vignettes/arrangeGrob.html
|
||||||
|
|
||||||
@ -31,4 +39,4 @@ for (i in dim1) {
|
|||||||
print(j);
|
print(j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
install R kernel for jupyter to use
|
install R kernel for jupyter to use
|
||||||
* `sudo R`
|
* `sudo R`
|
||||||
* `install.packages('IRkernel')`
|
* `install.packages('IRkernel')` (most likely have to run R under sudo)
|
||||||
* `IRkernel::installspec()`
|
* `IRkernel::installspec()` (don't use sudo R)
|
||||||
|
|
||||||
run on network:
|
run on network:
|
||||||
`jupyter notebook --ip 10.0.10.15 --port 8888`
|
`jupyter notebook --ip 10.0.10.15 --port 8888`
|
||||||
@ -11,4 +11,4 @@ run on network:
|
|||||||
basic packages:
|
basic packages:
|
||||||
* ggplot2, plyr, ggExtra, scales
|
* 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)`
|
||||||
|
Loading…
Reference in New Issue
Block a user