A wrapper function of normalizePath() with different defaults.

normalize_path(x, winslash = "/", must_work = FALSE, resolve_symlink = TRUE)

Arguments

x, winslash, must_work

Arguments passed to normalizePath().

Whether to resolve symbolic links.

Examples

library(xfun)
normalize_path("~")
#> [1] "/cluster-data/user-homes/elizabethb"