Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

set_script_path

Set the base path of the script


Description

Set the base path of the script

Usage

set_script_path(path = NULL)

Arguments

path

character string containing the relative or absolute path to the currently executing R code file, or NULL to reset the path.

Details

box needs to know the base path of the topmost calling R context (i.e. the script) to find relative import locations. In most cases, box can figure the path out automatically. However, in some cases third-party packages load code in a way in which box cannot find the correct path of the script any more. set_script_path can be used in these cases to set the path of the currently executing R script manually.

Value

box::set_script_path returns the previously set script path, or NULL if none was explicitly set.


box

Write Reusable, Composable and Modular R Code

v1.0.2
MIT + file LICENSE
Authors
Konrad Rudolph [aut, cre] (<https://orcid.org/0000-0002-9866-7051>), Michael Schubert [ctb] (<https://orcid.org/0000-0002-6862-5221>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.