Last active
August 14, 2019 16:37
-
-
Save benjaminguinaudeau/10d56caa2874da096e6ef9d99b27e4ff to your computer and use it in GitHub Desktop.
This gist installs all the R-packages I use. This is most particularly useful when a fresh installation of R is required.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The line below corresponds to all packages, I use at least twice in my documents | |
# This list has been created using pkguse (remotes::install_github("mkearney/pkguse")) | |
package <- c("base64enc", "blogdown", "corrr", | |
"countrycode", "cowplot", "devtools", | |
"dplyr", "dummies", "fs", "furrr", | |
"future", "ggcorrplot", "ggplot2", "glue", | |
"janitor", "kableExtra", "keras", "keyring", | |
"knitr", "lubridate", "magrittr", "numbers", | |
"pacman", "purrr", "R.utils", "R6", "readr", | |
"readxl", "reticulate", "rio", "rlang", "rmarkdown", | |
"RMySQL", "RSQLite", "rstudioapi", "rvest", "shiny", "sjPlot", | |
"spacyr", "stargazer", "stringdist", "stringr", | |
"tibble", "tidyr", "tidyverse", "udpipe", | |
"usethis", "viridis", "xml2") | |
package_perso <- c("randomForest") | |
# To install the packages, I use the pacman packages, which deals better with dependencies than install.packages() | |
install.packages("pacman") | |
# The tidyverse is first installed | |
pacman::p_load(tidyverse) | |
# Then I try to load all packages in the character vector. If the package is not found, it is installed | |
pacman::p_load(char = package) | |
pacman::p_load(char = package_perso) | |
# Finally a couple of packages, which have | |
remote::install_github("benjaminguinaudeau/dockeR") | |
remote::install_github("benjaminguinaudeau/bashR") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment