Load R package from character string

Use the character.only argument

foo <- "ggplot2"
library(foo,character.only=TRUE)

Leave a Comment