libraries: Install and Load Required Packages for ShapeLab

View source: R/libraries.r

librariesR Documentation

Install and Load Required Packages for ShapeLab

Description

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.

Usage

libraries(load = T, update = F)

Arguments

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)

Details

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

Value

No return value, called for side effects

Note

Packages are installed from the CRAN mirror "https://cloud.r-project.org/" All dependencies are automatically installed with each package

Examples

# 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)


ccamp83/mu documentation built on Nov. 7, 2024, 5:17 p.m.