File: absolute.R

package info (click to toggle)
r-cran-rprojroot 2.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 496 kB
  • sloc: sh: 12; makefile: 7
file content (4 lines) | stat: -rw-r--r-- 96 bytes parent folder | download | duplicates (3)
1
2
3
4
# adapted from fs
is_absolute_path <- function(x) {
  grepl("^[/\\\\~]|^[a-zA-Z]:[/\\\\]", x)
}