add.slash: Add a forward slash to a character string.

View source: R/add.slash.R

add.slashR Documentation

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.

Author(s)

Daniel Gatti

Examples

  add.slash("/dir")

dmgatti/DOQTL documentation built on April 7, 2024, 10:35 p.m.