Safe Way to Access Module Package Files Using Relative Path

get_path(..., mustWork = FALSE, is_directory = FALSE)

Arguments

... relative path to the file whether the file must exists whether required file is a directory

Value

If you are developing the package, get_path returns the absolute file path, otherwise it uses system.file to get the file from package library.