Nicolas

4 minute read

I recently discover a R package, called liftr package. It allows the build of pdf document (and html files, but i didn’t test it) from a Rmarkdown file. Fully integrated in RStudio, the R code is executed (and other code as well, I tried python) and results are displayed. You don’t even need to have LaTeX on your computer, since the document compilation take place in a docker image.

Nicolas

2 minute read

Installing On Ubuntu 16.04 sudo apt install docker-ce Moving images and containers More information there: linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux http://alexander.holbreich.org/moving-docker-images-different-partition/ #Saving /etc/fstab sudo cp /etc/fstab /etc/fstab.$(date +%Y-%m-%d) ## get partitions UUID sudo blkid ## Open fstab sudo pluma /etc/fstab Add the following :

Data partition UUID=<UUID of the wanted partition> /media/data ext4 defaults 0 2 whereis docker # docker: /usr/bin/docker /usr/lib/docker /etc/docker /usr/share/man/man1/docker.1.gz sudo service docker stop sudo mkdir /media/data/docker ls #if existiong docker directory sudo rm -Rf docker/ sudo mkdir docker cd docker/ rsync -aqxP /var/lib/docker/ .

Nicolas

20 minute read

source: http://neondataskills.org/R/Packages-In-R/ To see installed packages installed.packages() ## Package LibPath Version ## BH "BH" "/usr/local/lib/R/site-library" "1.66.0-1" ## DBI "DBI" "/usr/local/lib/R/site-library" "1.0.0" ## R6 "R6" "/usr/local/lib/R/site-library" "2.2.2" ## RColorBrewer "RColorBrewer" "/usr/local/lib/R/site-library" "1.1-2" ## Rcpp "Rcpp" "/usr/local/lib/R/site-library" "0.12.18" ## abind "abind" "/usr/local/lib/R/site-library" "1.4-5" ## assertthat "assertthat" "/usr/local/lib/R/site-library" "0.2.0" ## backports "backports" "/usr/local/lib/R/site-library" "1.1.2" ## base64enc "base64enc" "/usr/local/lib/R/site-library" "0.1-3" ## blogdown "blogdown" "/usr/local/lib/R/site-library" "0.8" ## bookdown "bookdown" "/usr/local/lib/R/site-library" "0.7" ## classInt "classInt" "/usr/local/lib/R/site-library" "0.