sudo apt-get install libX11-dev libglu1-mesa-dev libxml2-dev libgeos-dev libproj-dev libgdal-dev
Some R packages as well
install.packages(c("rgdal","maps","maptools","rgeos"))
Only, then, was I able to install knitr package according to this post.
install.packages("devtools")
library(devtools)
install_github("ggplot2","hadley")
install_github("knitr","yihui")
the last line has a typo; should be
ReplyDeleteinstall_github("knitr","yihui")
Thanks for the correction.
ReplyDelete