Signing or encrypting with GPG require that the keys are stored in your personal keyring. Use gpg_version to see which keyring (home dir) you are using. Also see gpg_keygen for generating a new key.

gpg_import(file)

gpg_recv(id, search = NULL, keyserver = NULL)

gpg_delete(id, secret = FALSE)

gpg_export(id, secret = FALSE)

gpg_list_keys(search = "", secret = FALSE)

gpg_list_signatures(id)

Arguments

file

path to the key file or raw vector with key data

id

unique ID of the pubkey to import (starts with 0x). Alternatively you can specify a search string.

search

string with name or email address to match the key info.

keyserver

address of http keyserver. Default searches several common servers (MIT, Ubuntu, GnuPG)

secret

set to TRUE to list/export/delete private (secret) keys

See also