My R packages
Upgrading R
The following assumes that RStudio is installed.
- First, of course, download the latest R version from CRAN
install.packages("devtools")
- Install the packages that you need. Here I suggest that you install packages that have lots of dependencies first – as this should install of all of the dependencies. … kind of top down install process.
My packages
Stage 1: My essential everyday packages
devtools
- bookdown
- tidyverse
- bookdown
GIS and remote sensing
- sf
- raster
- tmap
- mapview
- lidR (see below)
- rgdal
- gdalUtil
Statistics
- car
- lsr
- nlme – Package to perform linear mixed effects model analysis
- agricolae – Package for performing Tukey HSD
- lsmeans – Package for doing pairwise tests wtih lme results
- moments
- psych
Machine Learning
- caret
- SuperLearner
- mlr3
- mlr3learners
- mlr3viz
Model metrics
- vip
- vimp
Pretty
- latex2exp
- rmdformats – alternate reports look for
rmarkdown
- gridExtra
Parallel Processing
- snow
- doParallel
Install CRAN packages
plist <- c("devtools", "bookdown", "blogdown", "tidyverse")
plist <- append(plist, c("sf", "raster", "tmap", "mapview"))
plist <- append(plist, c("car", "lsr", "nlme", "moments",
"psych", "caret", "SuperLearner", "mlr3", "mlr3learners", "mlr3viz"))
plist <- append(plist, c("vip", "vimp"))
plist <- append(plist, c("latex2exp", "snow"))
lapply(plist, install.packages, character.only = TRUE)
lapply(plist, library, character.only = TRUE) ;rm(x)
Non-CRAN
GitHub
- r-spatial/stars
- Jean-Romain/rlas
- Jean-Romain/lidR
- clauswilke/gridtext
- pzhaonet/mindr
Install these using remotes::install_github("author/package")
Also a good practice to review the github site for any additional documentation.
gitList <- c("r-spatial/stars",
"Jean-Romain/rlas", "Jean-Romain/lidR",
"clauswilke/gridtext",
"pzhaonet/mindr")
lapply(gitList, devtools::install_github, character.only = TRUE)