R/absolute.R

Defines functions is_absolute_path

# adapted from fs
is_absolute_path <- function(x) {
  grepl("^[/\\\\~]|^[a-zA-Z]:[/\\\\]", x)
}

Try the rprojroot package in your browser

Any scripts or data that you put into this service are public.

rprojroot documentation built on Nov. 5, 2023, 5:06 p.m.