Description Usage Arguments Details Examples
Adds a dependency (external reference) to an R Markdown document.
1 2 3 |
name |
See |
version |
See |
file |
Filename of script or stylesheet. |
path |
Path within the package.
Ignored if |
packages |
A vector of package names to search for the file.
Ignored if |
fullpath |
Full path (relative or absolute) of file (all but filename). |
attach |
If TRUE, attaches the dependency. If FALSE, returns the htmlDependency object to be attached. |
Inspired by this guy.
Must specify file
(for package system files) or fullpath
.
path
is optional, to specify a path for a package system file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
add_dependency(
"testy-css",
packageVersion("surprisinglytidy"),
file = "testy.css",
path = "rmd/h/css"
)
add_dependency(
"foo",
"0.0.1",
fullpath = "./bar.js" # same folder as .Rmd file
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.