getRelativePath {file} |
R Documentation |
Gets the relative pathname relative to a directory.
Description
Usage
getRelativePath(pathname,
relativeTo = Call "getwd"());
Arguments
pathname
A character String Of the pathname To be converted into an relative pathname. [as string]
relativeTo
A character string of the reference pathname.
Details
In case the two paths are on different file systems,
for instance, C:/foo/bar/ and D:/foo/, the method
returns pathname as is.
Authors
SMRUCC genomics Institute
Value
Returns a character string of the relative pathname.
clr value class
Examples
[Package
file version 2.33.856.6961
Index]