View source: R/handlers-static.R
extract_cran_path_parts | R Documentation |
Splits the requested path into directory-part and filename-part, while ensuring some security to where it may point to.
extract_cran_path_parts(s)
s |
The requested path, e.g. |
A character vector of length 2, with directory path and filename.
If s
was a directory (e.g., "src/contrib", "src/contrib/",
"bin/windows/contrib/4.0", etc.) the second element is "".
Can return NULL
if s
does not fit the repository directory structure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.