Skip to content

This is a helper to retrieve locally some common resources accross pkgdown website. They will be copied from quillt package installation to pkgdown/assets folder for website customisation.

Usage

copy_assets(snippets = TRUE, holder = TRUE, .overwrite = TRUE)

Arguments

snippets

Copy the snippets.js script (A custom script offering the loadSnippet() JS function) and the required ace.js library in version 1.2.3.

holder

Copy holder.js version 2.9.0 http://holderjs.com/. Useful to add placeholder images.

.overwrite

Should it overwrite existing copy ? TRUE by default assuming git tracking is used.

Example of usage

Examples

if (FALSE) {
# do not need holder.js
copy_assets(holder = FALSE)

# Don't overwrite
copy_assets(.overwrite = FALSE)
}