Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

abs2rel

Remove common part of two paths, leaving relative path


Description

Remove common part of two paths, leaving relative path

Usage

abs2rel(path, stempath = getwd(), StopIfNoCommonPath = FALSE)

Arguments

path

Paths to make relative

stempath

Root to which path will be made relative

StopIfNoCommonPath

Error if no path in common

Value

Character vector containing relative path

Author(s)

jefferis

See Also

Other path_utils: common_path; split_path

Examples

path = "/Volumes/JData/JPeople/Sebastian/images"
abs2rel(path,'/Volumes/JData')

nat.utils

File System Utility Functions for 'NeuroAnatomy Toolbox'

v0.5.1
GPL-3
Authors
Gregory Jefferis
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.