normalize_path: Normalize paths

View source: R/paths.R

normalize_pathR Documentation

Normalize paths

Description

A wrapper function of normalizePath() with different defaults.

Usage

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

Arguments

x, winslash, must_work

Arguments passed to normalizePath().

resolve_symlink

Whether to resolve symbolic links.

Examples

library(xfun)
normalize_path("~")

yihui/xfun documentation built on May 9, 2024, 7:36 p.m.