Learn R Programming

box (version 1.2.0)

paths: Path related functions

Description

mod_search_path returns the character vector of paths where module code can be located and will be found by box.

Usage

mod_search_path(caller)

calling_mod_path(caller)

split_path(path)

merge_path(components)

sanitize_path_fragment(path)

Value

calling_mod_path the path of the source module that is calling box::use, or the script’s path if the calling code is not a module.

split_path returns a character vector of path components that logically represent path.

merge_path returns a single character string that is logically equivalent to the path passed to split_path. logically represent path.

Arguments

caller

the environment from which box::use was invoked.

path

the path

components

character string vector of path components to merge