View source: R/user_interface.R
assert_valid_output_dir | R Documentation |
Checks the content of output_dir
to make sure certain
directories and files are present. If some are missing, an error
is returned, otherwise output_folder_path
is returned
invisibly.
assert_valid_output_dir(
output_folder_path,
post_processed = TRUE,
countrytrajectories = post_processed,
made_results = post_processed,
adjusted_medians = post_processed,
age_ratios = NULL,
verbose = FALSE
)
output_folder_path |
Path (or paths, if a vector) to directory to validate. |
post_processed |
Logical; has |
countrytrajectories |
Logical; check for ‘countrytrajectories’ or ‘aggregatetrajectories’ directories? |
made_results |
Logical; has |
adjusted_medians |
Logical; check for adjusted median results? |
age_ratios |
Logical; check for age ratio results? Defaults
to |
The default for 'post_processed' is 'TRUE' by because an un-processed directory doesn't even have 'mcmc.array.rda', which means it's unlikely to be used.
If all checks pass, output_folder_path
is returned
invisibly, otherwise an error is thrown.
Mark Wheldon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.