try_load_elsewhere: Check if package can be loaded

View source: R/package-installation.R

try_load_elsewhereR Documentation

Check if package can be loaded

Description

Loading happens in a separate R process (that should find the same .Renviron, etc... files as the current one so this should be a reproducible check. Returns FALSE unless the package can be loaded

Usage

try_load_elsewhere(pkg)

Arguments

pkg

name of the package as a string

Details

Does not affect state of namespace in the current session!

Value

TRUE iff package can be loaded


sakrejda/workflow documentation built on Nov. 18, 2024, 3:02 a.m.