add_path_prefix: Register a path prefix

View source: R/path.R

add_path_prefixR Documentation

Register a path prefix

Description

Each path prefix will be added to ‘base.out.path' separated by ’/' to create a full path for output

Usage

add_path_prefix(name, prefix)

Arguments

name

name of the prefix

prefix

path to add to the prefix

Details

Prefix mechanism allow to define constant path at several levels. For example : output path for global workspace (base.out.path) output path for a project (that will complete base.out.path) output path in a script of the project

See Also

Other path-functions: create_path(), get_current_paths(), init.path(), my.path(), platform_path(), print.paths_definition(), share.cache.path(), share.data.path(), share.lib.path(), share_path()

Examples

# base.out.path = '/my/path/'
add_path_prefix('project', 'my_project') # A project prefix to the path
## Not run: 
init.path('output') # Add output to the current path

## End(Not run)
my.path() # => '/my/path/my_project/output'

cturbelin/ifnBase documentation built on Aug. 26, 2024, 12:54 p.m.