inst/extdata/get_secret.R

#!/usr/bin/env Rscript
# script for running the search loop
args = commandArgs(trailingOnly=TRUE)

# test if the data directory path has been provided
if (length(args)==0) {
  stop("The config file has not been provided", call.=FALSE)
} 

secret <- args[1]
kr <-episomer:::get_key_ring('file')
if(episomer:::is_secret_set(secret)) {
    write(episomer:::get_secret(secret), stdout())
} else {
    write("Not found", stderr())
}

Try the episomer package in your browser

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

episomer documentation built on Nov. 26, 2026, 5:07 p.m.