R/absolute.R

Defines functions is_absolute_path

# adapted from fs
is_absolute_path <- function(x) {
  grepl("^[/\\\\~]|^[a-zA-Z]:[/\\\\]", x)
}
krlmlr/rprojroot documentation built on Feb. 4, 2024, 9:23 a.m.