Description Usage Arguments Value References Examples
Download files from npm packages via unpkg
1 2 3 | download_main(pkg)
download_files(pkg, files = NULL)
|
pkg |
the name (and optionally the version) of an npm package. (e.g. 'jquery', 'jquery@3.0.0') |
files |
character vector of paths to files. These are used as the |
a htmltools::htmlDependency object
1 2 3 4 5 6 | (fa <- download_main("fontawesome"))
htmltools::renderDependencies(list(fa), "href")
htmltools::renderDependencies(list(fa), "file")
(jquery <- download_files("jquery@3.0.0", "dist/jquery.slim.min.js"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.