This function retrieves the full path to a file included in the vauryou package
installation directory.
Arguments
- filename
Character string specifying the name of the file to locate
within the package directory.
Value
A character string containing the full path to the specified file.
Details
The function uses system.file() with mustWork = TRUE
to ensure that the file exists and throws an error if it doesn't.
Examples
if (FALSE) { # \dontrun{
# Get path to a template file
template_path <- vauryou_file("template.Rmd")
# Get path to a configuration file
config_path <- vauryou_file("config.yml")
} # }