FixPath: FixPath

View source: R/Stringendo.R

FixPathR Documentation

FixPath

Description

FixPath removes multiple consecutive slashes (e.g. '//') from a string and adds a final '/' if missing from a file path.

Usage

FixPath(string = "stairway//to/heaven", ..., is.file = FALSE)

Arguments

string

The file path potentially having Double Slash

...

Additional strings to concatenate after the first one

is.file

Do not add last slash if this string ends in a filename. Def: FALSE

Examples

FixPath(string = "stairway//to/heaven")


vertesy/Stringendo documentation built on Nov. 10, 2024, 4:35 a.m.