pureBasename | R Documentation |
As opposed to basename()
, this function returns the pure basename of one or
multiple file names, i.e. without extension.
pureBasename(path, slash = FALSE)
path |
File name(s) as |
slash |
A |
File name(s) without extension as character
.
Florian Detsch
tools::file_path_sans_ext()
.
ifl = tempfile(fileext = ".tif") pureBasename(ifl) pureBasename(ifl, slash = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.