
Convert a path to relative
path_relative.RdGiven an absolute path, it returns the relative path with respect to a base (by default, the working directory in R)
Usage
path_relative(path, base = getwd())Details
The relative path is built by fs::path_rel(), which compares whole
directory names, so that e.g. /home/user/abd/file relative to
/home/user/abc is ../abd/file.