add_lib_path: Add Library Path

View source: R/lib-management.R

add_lib_pathR Documentation

Add Library Path

Description

Add Library Path

Usage

add_lib_path(path, after, version = FALSE)

Arguments

path

Directory that will added as location for which packages are searched. Recursively creates the directory if it doesn't exist. On Databricks remember to use ⁠/dbfs/⁠ or ⁠/Volumes/...⁠ as a prefix.

after

Location at which to append the path value after.

version

If TRUE will add the R version string to the end of path. This is recommended if using different R versions and sharing a common path between users.

Details

This functions primary use is when using Databricks notebooks or hosted RStudio, however, it works anywhere.

See Also

base::.libPaths(), remove_lib_path()


brickster documentation built on April 12, 2025, 1:21 a.m.