Skip to contents

As a security measure, all submissions to Nettskjema data in to TSD are encrypted. These encrypted files need to be decrypted before they can be sorted and prepared for use in R (or other programs). To decrypt the data, R needs to have access to the secret key that will verify that the decryption is ok to carry out. This function can verify the existence of a key-file given a specified location, or attempt to auto-detect a key-file.

Usage

nettskjema_tsd_keyfile(
  path = Sys.getenv("nettskjema.tsd.keyfile"),
  project = NULL,
  verbose = NULL
)

Arguments

path

full path to the key-file

project

current TSD project. Will automatically auto-detect project.

verbose

logical. Should the function output status messages. Default is TRUE.

Value

character with the full verified path

Examples

if (FALSE) {
nettskjema_tsd_keyfile()
nettskjema_tsd_keyfile(path = "/my/keyfile/path/secret.asc")
}