R/util.R

Defines functions spark_normalize_path

spark_normalize_path <- function(path) {
  # don't normalize paths that are urls
  if (grepl("[a-zA-Z]+://", path)) {
    path
  }
  else {
    normalizePath(path, mustWork = FALSE)
  }
}
rstudio/sparktf documentation built on July 14, 2021, 5:49 a.m.