unixPath: Convert Windows to Unix paths

View source: R/unixPath.r

unixPathR Documentation

Convert Windows to Unix paths

Description

Get unix paths equivalents of Windows paths, for example for linux subsystem or cygwin. Function likely only applicable under Windows.

Usage

unixPath(path, reverse = FALSE, mountpoint = "/mnt")

Arguments

path

Path to be transformed.

reverse

Convert from windows to unix (FALSE) or from unix to windows (TRUE). When converting from unix, a full path must be provided. Converting to unix can be performed with relative paths.

mountpoint

Mountpoint of the windows drive, usually '/mnt' for linux subsystem and '/cygdrive' for cygwin.

Value

transformed path


kraaijenbrink/pkrf documentation built on July 4, 2023, 10:16 p.m.