View source: R/html_dependency.R
makeDependencyRelative | R Documentation |
Change a dependency's absolute path to be relative to one of its parent directories.
makeDependencyRelative(dependency, basepath, mustWork = TRUE)
dependency |
A single HTML dependency with an absolute path. |
basepath |
The path to the directory that |
mustWork |
If |
The dependency with its src
value updated to the new
location's relative path.
If baspath
did not appear to be a parent directory of the dependency's
directory, an error is raised (regardless of the value of mustWork
).
copyDependencyToDir()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.