Skip to contents

These functions return character vectors of package names in the MomX ecosystem. Use them to see which packages are available, check installation status, or programmatically install packages.

Usage

momx_packages(include_self = FALSE)

momx_packages_core()

momx_packages_extended()

momx_packages_all()

Arguments

include_self

For momx_packages(): Include the MomX meta-package itself in the list? Default is FALSE.

Value

A character vector of package names.

Details

The MomX ecosystem is organized into two tiers:

Core packages (loaded automatically with library(MomX)):

  • Momocs2: Core morphometric methods and data structures for outline and landmark analysis

  • Momacs: Interactive digitization tools for extracting coordinates from images

  • Momoshop: Image processing pipeline builder for reproducible preprocessing

Extended packages (install separately as needed):

  • Momdata: Curated example datasets for teaching and testing

  • Momstats: Advanced statistical methods for shape analysis

Functions

momx_packages()

Returns all packages by reading from the MomX DESCRIPTION file. This is the canonical list.

momx_packages_core()

Returns only core packages that are loaded automatically with library(MomX).

momx_packages_extended()

Returns only extended packages that should be installed separately.

momx_packages_all()

Returns all packages (core + extended). Equivalent to momx_packages() but uses the internal vectors.

See also

Examples

# List all packages (from DESCRIPTION)
momx_packages()
#> [1] "MomX"

# Include MomX itself
momx_packages(include_self = TRUE)
#> [1] "MomX" "MomX"

# List only core packages
momx_packages_core()
#> [1] "Momocs2"  "Momacs"   "Momoshop"

# List only extended packages
momx_packages_extended()
#> [1] "Momdata"  "Momstats"

# List all packages (core + extended)
momx_packages_all()
#> [1] "Momocs2"  "Momacs"   "Momoshop" "Momdata"  "Momstats"

# Check which core packages are installed
core <- momx_packages_core()
installed_core <- core[core %in% rownames(installed.packages())]
installed_core
#> [1] "Momocs2" "Momacs" 

# Check which packages are currently loaded
loaded <- momx_packages_all()[
  momx_packages_all() %in% loadedNamespaces()
]
loaded
#> [1] "Momocs2" "Momacs" 

# Count packages by type
cat(sprintf(
  "MomX ecosystem: %d core + %d extended = %d total packages\n",
  length(momx_packages_core()),
  length(momx_packages_extended()),
  length(momx_packages_all())
))
#> MomX ecosystem: 3 core + 2 extended = 5 total packages