Skip to contents

Downloads the pre-built shared library for your platform from the fastsem GitHub Releases page and loads it into the current R session. The binary is cached in tools::R_user_dir("fastsemR", "cache") and re-used on subsequent calls (including package startup via .onLoad).

Usage

fastsem_install(force = FALSE)

Arguments

force

Logical (default FALSE). When TRUE, re-download even if a cached binary already exists. Use after a new fastsem release.

Value

Invisibly, the absolute path to the loaded binary.

Details

Platform detection is automatic:

  • Linux x86-64 → libfastsem_r-linux-x86_64.so

  • macOS x86-64 → libfastsem_r-macos-x86_64.dylib

  • macOS arm64 → libfastsem_r-macos-arm64.dylib

  • Windows x64 → libfastsem_r-windows-x64.dll

See also

fastsem_update() for a one-liner force-download; fastsem_load() to use a locally compiled binary.

Examples

if (FALSE) { # \dontrun{
# First-time install (or after a fresh R install)
fastsem_install()

# Upgrade to the latest release
fastsem_install(force = TRUE)
} # }