get_opt_data_filepath: Access a single file from the package cache by its file name.

View source: R/optdata.R

get_opt_data_filepathR Documentation

Access a single file from the package cache by its file name.

Description

Access a single file from the package cache by its file name.

Usage

get_opt_data_filepath(filename, mustWork = TRUE)

Arguments

filename

string. The filename of the file in the package cache.

mustWork

logical. Whether an error should be created if the file does not exist. If mustWork=FALSE and the file does not exist, the empty string is returned.

Value

string. The full path to the file in the package cache or the empty string if there is no such file available. Use this in your application code to open the file.


freesurferformats documentation built on May 29, 2024, 5:29 a.m.