R/zzz.r

.onLoad <- function(libname, pkgname)
{
  ### Preload to global environment.
  invisible(eval(parse(text = "remoter:::init_state()")))

  ### Load and set sodium then generate public/private keys.
  test <- requireNamespace("sodium", quietly=TRUE)
  set(withsodium, test)
  if (test)
    generate_keypair()
  
  invisible()
}

Try the remoter package in your browser

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

remoter documentation built on May 2, 2019, 6:12 a.m.