I'm using R's gpg package - https://cran.r-project.org/web/packages/gpg/gpg.pdf and I'd like to use-
gpg_encrypt(data, receiver, signer = NULL)
By default this outputs to a file. Is there any way to save the output of that function to a variable? For example
x <- gpg_encrypt(data, receiver, signer = NULL)