R - Load a list of libraries
Load R libraries quietly, while setting very parameters.
Parameters:
- options(digits = 5) - Gives 5 digit precision
- options(tinytex.verbose = FALSE) - When ‘knitting’ docs this will also give fewer messages.
options
{base} Invoking ‘options()’ with no arguments returns a list with the current values of the options.
# Use: message=FALSE, warning=FALSE, include=FALSE
opts_chunk$set(fig.align = 'center')
options(tinytex.verbose = FALSE)
options(digits = 5)
#Load Libraries
Libraries <- c("knitr", "readr")
for (p in Libraries) {
library(p, character.only = TRUE)
}
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.