powered by
Remove common part of two paths, leaving relative path
abs2rel(path, stempath = getwd(), StopIfNoCommonPath = FALSE)
Character vector containing relative path
Paths to make relative
Root to which path will be made relative
path
Error if no path in common
jefferis
path.expand, normalizePath
path.expand
normalizePath
Other path_utils: common_path(), split_path()
common_path()
split_path()
path = "/Volumes/JData/JPeople/Sebastian/images" abs2rel(path,'/Volumes/JData')
Run the code above in your browser using DataLab