libraries | R Documentation |
This function manages package dependencies for the ShapeLab package. It checks for required packages, installs missing ones, optionally updates existing packages, and loads them into the R environment.
libraries(load = T, update = F)
load |
Logical. If TRUE (default), loads all required packages after installation |
update |
Logical. If TRUE, updates all installed packages to their newest versions (default: FALSE) |
The function performs the following steps: 1. Checks currently installed packages 2. Compares against required package list 3. Installs any missing packages from CRAN 4. Optionally updates all packages 5. Optionally loads all required packages
Required packages include: * Data manipulation: plyr * Visualization: ggplot2, cowplot, grid, grDevices, lattice * Statistical analysis: lme4, car, AICcmodavg, fpc * Mixed models: pbkrtest * Utilities: Hmisc, fields, gridExtra, phia, gtools * Development: roxygen2 * Matrix operations: clusterGeneration * Statistical tools: DescTools * Parallel processing: parallel * Visualization helpers: heplots
No return value, called for side effects
Packages are installed from the CRAN mirror "https://cloud.r-project.org/" All dependencies are automatically installed with each package
# Load packages only
libraries(load = TRUE, update = FALSE)
# Update and load packages
libraries(load = TRUE, update = TRUE)
# Install/update packages without loading
libraries(load = FALSE, update = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.