fs_drop_ext(path, pos = "first", ext = NULL)
Arguments
path |
[character ]
Paths. |
pos |
[character(1) | integer(1) ]
This parameter specifies which dot in the filename should be considered to
split the actual name from the file extension. Defaults to “first”,
i.e., the first dot is used. Option “last” anologously uses the last
dot. Alternatively, one can pass a single integer specifying the position. |
ext |
[character(1) ]
Optional explicit character vector of file extension(s) to drop without
leading dot.
Default is NULL . |
Value
A character vector.
See also