Last modified on 01 Oct 2021.

Install R

👉 Home page.

Install a package in R

# directly
install.packages("slidify")
# from github repo
install.packages("devtools")
devtools::install_github("twitter/AnomalyDetection")
library(AnomalyDetection)

R with jupyter notebook

👉 Read this note.

Error

# installation of package ‘xml2’ had non-zero exit status
sudo apt install libxml2-dev
# cannot install packages
# Setting LC_CTYPE failed, using "C"
# (or something like that)

# without root environnement
# exit R
defaults write org.R-project.R force.LANG en_US.UTF-8
# start R again

# with root (in a docker bash, for example)
# start R by using
LC_ALL=C.UTF-8 R

•Notes with this notation aren't good enough. They are being updated. If you can see this, you are so smart. ;)