View source: R/S03_Utilities.R
make_file_name | R Documentation |
Creates a file name using the standardized format 'PROJECT-SXX-Description-YYYY_MM_DD-HH_MM.ext' where 'PROJECT' is a abbreviation for a project name, and 'SXX' is a letter followed by a number indicating the script or analysis index. Both variables can be automatically specified from existing environmental variables.
make_file_name(
description,
extension,
project = NULL,
script = NULL,
date_time = NULL,
remove = FALSE,
path = ".",
env_variables = c("ABBR_PROJECT", "ABBR_SCRIPT")
)
description |
A character string, a human-readable
description of the file (with words typically separated
by |
extension |
A character string, the file extension
(e.g., |
project |
A character string, the abbreviation for the project name (can be inferred from environmental variables). |
script |
A character string, typically a one-letter abbreviation followed by a two-digit number indicating the script or analysis index. |
date_time |
A character string giving the date and time
(usually in the format |
remove |
Logical; if |
path |
A character string specifying the subfolder(s) for the file. |
env_variables |
A character vector specifying the name of the environmental variables with the project and script abbreviations. |
A character string.
make_file_name( 'Example', 'R' )
make_file_name( 'Example_2', 'RData', project = 'EX', script = 'S01' )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.