Encrypt and password protect an HTML document.
charm(
input,
password,
hint = NULL,
output = NULL,
style = stylize(),
bundle = FALSE,
minified = TRUE,
...
)
Path to an R Markdown or HTML file.
Private password to unlock file. If not provided, you will be asked to supply a password by a prompt if you are working from an interactive session.
Optional public password hint.
Override the name of the output file.
Object returned from stylize()
.
Logical. Should all of the decryption machinery and
dependencies be bundled into the HTML document? Default is FALSE
.
Logical. Should minified versions of JavaScript dependencies
be included? Default is TRUE
.
Arguments passed on to rmarkdown::render()
.
Using bundle = TRUE
only applies to bundling the
decryption machinery and dependencies for the document generated
by charm()
. It is still the users responsibility to decide on whether
input
is self-contained by passing self_contained = TRUE
to
rmarkdown::render()
using ...
, or by specifying
self_contained: true
in the YAML header of input
.
if (FALSE) {
charm("input.Rmd")
charm("input.Rmd", password = "pw1234!")
}