The goal of pagecryptr is to provide and R-wrapper around the PageCrypt
HTML password protecter. It
is very common for R users to knit Rmarkdown documents to HTML docs.
This provides an easy way to PageCrypt those documents without leaving
R. The package has one function self named pagecryptr
that uses the V8
package to run the JavaScript code that encrypts the document which
usually occurs in the browser if using the PageCrypt website. Note this
R package now currently runs the legacy version of PageCrypt.
Current stable version will be hosted on my drat
repository.
# install.packages("drat")
drat::addRepo("brentscott93")
install.packages("pagecryptr")
You can install the development version of pagecryptr from GitHub with:
# install.packages("devtools")
devtools::install_github("brentscott93/pagecryptr")
library(pagecryptr)
if(interactive()){
file <- system.file("example.html", package = "pagecryptr")
pagecryptr(file, "password", out_file = "~/Desktop/encrypted-file.html")
}