Learn R Programming

modules (version 0.9.8)

set_script_path: Set the base path of the script.

Description

Set the base path of the script.

Usage

set_script_path(path)

Arguments

path

character string containing the relative or absolute path, or NULL to reset the path

Details

modules needs to know the base path of the topmost calling R script to find relative import locations. In most cases, it can figure the path out automatically. However, in some cases third party packages load files in such a way that modules cannot find out the correct path of the script any more. set_script_path can be used in these cases to set the script path manually.