Skip to contents

This function replaces the tilde (~) character with the user's home directory path in the provided paths, similar to Python's pathlib.Path.expanduser() method.

Usage

Path_expanduser(paths)

Arguments

paths

A character vector of file paths.

Value

A character vector with expanded tilde paths.

Examples

if (FALSE) {
Path_expanduser("~/Documents/file.txt")
}