add_path_prefix: Register a path prefix

Description Usage Arguments Details See Also Examples

View source: R/path.R

Description

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

Usage

1

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: get_current_paths(), init.path(), my.path(), platform_path(), print.paths_definition(), share.cache.path(), share.data.path(), share.lib.path(), share_path()

Examples

1
2
3
4
5
6
7
# 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 Jan. 10, 2020, 1:44 a.m.