Learn R Programming

artma (version 0.3.3)

results.dir: Get Results Directory Path

Description

Returns the resolved path to the output directory where analysis results (tables, graphics) are saved. The path is printed and returned invisibly. When called without arguments, tries to use the most recently exported directory without prompting for an options file.

Usage

results.dir(options = NULL, options_dir = NULL)

Value

[character] The resolved output directory path (invisibly).

Arguments

options

[character, optional] Name of the options file (with or without .yaml extension). If NULL, the function first checks for a recent export marker. If no marker is found and running interactively, you will be prompted to select an options file.

options_dir

[character, optional] Directory containing the options file. If NULL, uses the default options directory.

Examples

Run this code
if (FALSE) {
# Get the most recent results directory
results.dir()

# Get results dir for a specific options file
results.dir(options = "my_analysis.yaml")
}

Run the code above in your browser using DataLab