if (FALSE) {
# Example 1: Load packages using the names of the packages
misty::libraries(misty, lme4, lmerTest)
# Example 2: Load packages using literal character strings
misty::libraries("misty", "lme4", "lmerTest")
# Example 3: Load packages using a character vector
misty::libraries(c("misty", "lme4", "lmerTest"))
# Example 4: Check packages, i.e., TRUE = all depends/imports/suggests installed
misty::libraries(misty, lme4, lmerTest, output = FALSE)$result$restab
# Example 5: Depends, FALSE = not installed, TRUE = installed
misty::libraries(misty, lme4, lmerTest, output = FALSE)$result$depends
# Example 6: Imports, FALSE = not installed, TRUE = installed
misty::libraries(misty, lme4, lmerTest, output = FALSE)$result$imports
# Example 6: Suggests, FALSE = not installed, TRUE = installed
misty::libraries(misty, lme4, lmerTest, output = FALSE)$result$suggests
}
Run the code above in your browser using DataLab