pathstart: pathstart determines what character(s) is at the start of a...

View source: R/rutils.R

pathstartR Documentation

pathstart determines what character(s) is at the start of a path

Description

pathstart determines what character(s) is at the start of a path uses pathkind to get the separator and then checks the start character

Usage

pathstart(inpath)

Arguments

inpath

the path to be analysed

Value

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

Examples

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

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