R/absolute.R

Defines functions is_absolute_path

# adapted from fs
is_absolute_path <- function(x) {
  grepl("^[/\\\\~]|^[a-zA-Z]:[/\\\\]", x)
}
r-lib/rprojroot documentation built on Feb. 3, 2024, 3:46 p.m.