get_file_folder: Get a full folder path

Description Usage Arguments Value Author(s) Examples

View source: R/package_functions.R

Description

Returns the full folder path to the file. It searches in the package environment variable cabinet for the path.

Usage

1
get_file_folder(file, inFolder = NULL, recall = T, allowMult = F)

Arguments

file

A character string giving the name of the file to get the full folder path for (i.e. "main.R").

inFolder

An identifer to narrow the search in case there are multiple files with same name but in different folders (i.e. "Codes/Model1").

recall

A boolean (T, F) indicator specifying whether to rebuild the cabinet if the file was not found the first time. The default is T.

allowMult

A boolean (T, F) indicator specifying whether to allow multiple file paths upon return. The default is F.

Value

A character string giving the full folder path to the specified file.

Author(s)

Alex Hubbard (hubbard.alex@gmail.com)

Examples

1
2
get_folder_path("Model1.R")
get_folder_path("Model.R", inFolder = "Codes")

opendoor-labs/projectmap documentation built on Oct. 8, 2019, 1:58 p.m.