Learn R Programming

NetRep (version 1.0.2)

prettyPath: Convert an absolute file path to a relative one if possible

Description

Convert an absolute file path to a relative one if possible

Usage

prettyPath(file)

Arguments

file
file path to convert

Value

a file path relative to either the users home directory or the current working directory if the file is located underneath either.