lib.clean: Clean multiversion library, revert to state of last commit.

View source: R/helper_functions.R

lib.cleanR Documentation

Clean multiversion library, revert to state of last commit.

Description

Clean up all un-tracked (not committed) installed libraries in the multiversion library. Will additionally also clean up the TEMP_install_location directory (this is an 'ignored' directory).

Usage

lib.clean(lib_location = lib.location(), clean_temp_lib = TRUE)

Arguments

lib_location

By default the library path returned by lib.location() is used. See Note.

clean_temp_lib

If true, will also run lib.clean_install_dir().

Details

Since it involves a quite invasive operation, it asks for permission when being called in an interactive session.

Value

Clean up all un-tracked (not committed) installed libraries in the multiversion library. Will additionally also clean up the TEMP_install_location directory (this is an 'ignored' directory). Will ask for permission when being called in an interactive session.

Note

It will build the most likely installation directory based on the lib_location you provide. See lib.location_install_dir. Which is <your lib>/TEMP_install_location.


multiversion documentation built on March 22, 2022, 1:07 a.m.