dot-get_path_safely: Construct a file path

Description Usage Arguments Details Value

Description

Construct a file path given a directory, file, and extension.

Usage

1
.get_path_safely(dir, file, ext, path = NULL)

Arguments

dir

character. Folder name (with a trailing slash).

file

character. Bare file (i.e. without folderor extension),

ext

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

path

character. Concatenation of file, dir, and ext,

Details

This function is notable because it has a path argument that can be used as a quick "out". This helps with argument checking with package functions.

Value

character. Path.


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