powered by
is.package.loaded(x, envir = sys.frame(sys.parent(0)), character.only = FALSE)
library
require
environment
check.packages
is.package.loaded(Xmisc) is.package.loaded("Xmisc") x <- "Xmisc" is.package.loaded(x) #FALSE is.package.loaded(x,character.only=TRUE) #TRUE
Run the code above in your browser using DataLab