Rdocumentation
powered by
Learn R Programming
DOQTL (version 1.8.0)
add.slash: Add a forward slash to a character string.
Description
If the argument does not end with a forward slash, add one.
Usage
add.slash(path)
Arguments
path
Character string containing a file path.
Value
Returns a character string with a forward slash added to the end, if the argument did not end with a forward slash already.
Examples
Run this code
add.slash(
"/dir"
)
Run the code above in your browser using
DataLab