copyDependencyToDir(dependency, outputDir, mustWork = TRUE)
TRUE
and dependency
does not point to a
directory on disk (but rather a URL location), an error is raised. If
FALSE
then non-disk dependencies are returned without modification.src
value updated to the new
location's absolute path.If a subdirectory named name-version already exists in
outputDir
, then copying is not performed; the existing contents are
assumed to be up-to-date.
makeDependencyRelative
can be used with the returned
value to make the path relative to a specific directory.