set_library | R Documentation |
Set the path for where R will install packages.
set_library(lib_path = "/dbfs/Rlib", Rversion = T) remove_library(lib_path)
Rversion |
boolean. Should the current version of R be added as a directory in the path? Defaults to TRUE. |
user_libpath |
A string representing the path to install packages in DBFS |
user_lib_path |
A string representing the path to be removed from .libPaths() |
To persist packages on Databricks use a path that begins with '/dbfs/'. This is designed to be used in conjunction with 'bricksteR::curate()'. For shared clusters where users prefer package isolation, each user should create their own path for package installation. If building a central shared repo of packages, set the path to a common directory.
The user library path
The removed library path
path <- "/dbfs/rk/my_packages" set_library(lib_path = path) remove_library(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.