Get the relative path of a path in a project relative to the current working directory
Source:R/paths.R
from_root.RdFirst compose an absolute path using the project root directory and the
relative path components, i.e., file.path(root, ...). Then
convert it to a relative path with relative_path(), which is
relative to the current working directory.
Usage
from_root(..., root = proj_root(), error = TRUE)Value
A relative path, or an error when the project root directory cannot
be determined or the conversion failed and error = TRUE.