pathconvert: Convert paths into shortform on Windows to deals with space...

View source: R/atlantisfmsy_simudir.R

pathconvertR Documentation

Convert paths into shortform on Windows to deals with space in path

Description

Convert the path path into the shortform to deals with space issues in Windows OS path. First the function check the OS to see if it's Windows and then it check if the path isn't NULL.

Usage

pathconvert(path)

Arguments

path

path to convert

Value

path converted path.

Note

This is only working if the path already exist on your machine. If not, will return path with double backslashes instead of slash but keep the space in the path.

See Also

shortPathName to Convert file paths to the short form.

Examples

pathconvert("C:/Atlantis/AtlantisEEC")

## Not run: pathconvert("/home/Atlantis/AtlantisEEC") # for UNIX


rgirardi/atlantisfmsy documentation built on Aug. 30, 2022, 9:11 a.m.