R/zzz.r

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
  # Error if gpg is not installed or cannot be run from the terminal
  if(!system2("gpg", "--version", stdout = FALSE, stderr = FALSE) == 0){
    stop(
      "Please install GPG first or check if GPG can be run from the command line.
      The rcrypt package is just an interface to GPG. See https://gnupg.org/ for
      installation guidelines."
    )
  }
}

Try the rcrypt package in your browser

Any scripts or data that you put into this service are public.

rcrypt documentation built on May 2, 2019, 12:42 a.m.