| short_names | R Documentation |
Helper functions that make the paths to a file shorter.
drop_path(x, ...) drop_extension(x, ...) short_names(x, ...)
x |
An object of class |
... |
Additional arguments. |
An object of the same class as x.
drop_path(): Extract the base name of a path, removing the paths leading to it.
drop_extension(): Remove extension from a filename.
short_names(): Remove both paths leading to a file and its extension.
cwd_fnames <- as_fnames(c("folder/file1.txt", "folder/file2.txt", "folder/file3.txt"))
drop_path(cwd_fnames)
drop_extension(cwd_fnames)
short_names(cwd_fnames) # same as drop_path(drop_extension(cwd_fnames))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.