dot-get_path_lazily: Construct a file path

Description Usage Arguments Details Value

Description

Constructs a file path given a directory as the first input and an extension as the last input.

Usage

1

Arguments

dir

character. Folder name (with a trailing slash).

...

dots. Arguments parssed to construct name of file path without the directory nor the extension. Uses paste() to collapse all arguments between dir and ext.

ext

character. Bare extension (i.e. without a dot). Must be one of valid formats.

Details

Assumes that the last arguments is the path extension. If ext is not specified explicitly, it is assumed to be the last argument passed to the function. This format allows for 'lazy' construction of the basename of the file (sans extension) given all arguments that are not the first nor the last.

Value

character. Path.


aelhabr/teproj documentation built on June 18, 2020, 3:25 a.m.