Paths as R spells them on every OS: forward slashes throughout, which R accepts on Windows as well and which
survive interpolation into an R string literal, where a raw `` would escape.
Type Declaration
basename: function
basename(this:void,p:string):string
Parameters
this: void
p: string
Returns string
dirname: function
dirname(this:void,p:string):string
Parameters
this: void
p: string
Returns string
join: function
join(this:void,...parts:string[]):string
Parameters
this: void
...parts: string[]
Returns string
Readonlyname: "RPath"
normalize: function
normalize(this:void,p:string):string
Parameters
this: void
p: string
Returns string
of: function
of(this:void,p:string):string
p with every backslash rewritten to a forward slash
Parameters
this: void
p: string
Returns string
relative: function
relative(this:void,from:string,to:string):string
the path to is reached under from from, spelled so it reads as relative (./data/x.csv)
Parameters
this: void
from: string
to: string
Returns string
Helper
location Paths as R spells them on every OS, with forward slashes throughout.
Paths as R spells them on every OS: forward slashes throughout, which R accepts on Windows as well and which survive interpolation into an R string literal, where a raw `` would escape.