Description Usage Arguments Value
Given a relative file, determine its subdir in the package cache.
1 | get_relative_file_subdir(pkg_info, relative_file)
|
pkg_info, |
named list. Package identifier, see get_pkg_info() on how to get one. |
relative_file, |
string or vector of strings. If a string, this function does nothing. If a vector of strings, a path is created from the elements using file.path, and the directory of it (determined by dirname()) is created. |
named list. The entries are: "has_subdir": logical, whether the file has a subdir. "relative_filepath": string. The input relative_file, flattened to a string. For files without subdir, this is identical to string in the parameter 'relative_file'. For others, it is the result of applying file.path() to the elements of the vector 'relative_file'. If "has_subdir" is TRUE, the following 2 fields also exist: "relative_subdir": string, subdir path relative to package cache dir. "absolute_subdir": string, absolute subdir path.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.