pathfinish: pathfinish determines what character is at the end of a path

View source: R/rutils.R

pathfinishR Documentation

pathfinish determines what character is at the end of a path

Description

pathfinish determines what character is at the end of a path uses pathkind to get the separator and then checks the end character

Usage

pathfinish(inpath)

Arguments

inpath

the path to be analysed

Value

the end character of the path; either ”, '/', or "\"

Examples

  indir <- "C:/Users/Malcolm/Dropbox/rcode2/aMSE/data-raw"
  pathfinish(indir)

haddonm/codeutils documentation built on April 15, 2024, 1:02 p.m.