Skip to content
Bindings to gpgme for R
C R Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
man
src
tools Windows: upgrade to gpgme 1.12.0 Dec 29, 2018
vignettes
.Rbuildignore Tweaks Oct 12, 2016
.gitignore Fix Oct 5, 2016
.travis.yml
DESCRIPTION
LICENSE
NAMESPACE
NEWS
README.md Fix URL in more places Apr 30, 2019
api.R Cleanups Sep 21, 2015
appveyor.yml Add CI stuff Oct 5, 2016
cleanup
configure
configure.win
gpg.Rproj

README.md

gpg

GNU Privacy Guard for R

Build Status AppVeyor Build Status CRAN_Status_Badge CRAN RStudio mirror downloads Github Stars

Bindings to GPG for creating and verifying OpenGPG (RFC4880) signatures. This is not a standalone library; GPG needs to be installed on the system. On Windows you need GPG4Win or similar, on other systems use the GPGME library.

Documentation

About the R package:

Other resources:

Hello World

The Debian backports archives on CRAN are signed with the key of Johannes Ranke (CRAN Debian archive) jranke@uni-bremen.de with key fingerprint 6212 B7B7 931C 4BB1 6280 BA13 06F9 0DE5 381B A480.

Let's import his key so that we can verify the Release file, which contains checksums for all files in the repository:

# Take out the spaces
johannes <- gsub(" ", "", "6212 B7B7 931C 4BB1 6280  BA13 06F9 0DE5 381B A480")
gpg_recv(johannes)

# Verify the file
library(curl)
curl_download('https://cran.r-project.org/bin/linux/debian/buster-cran35/Release', 'Release')
curl_download('https://cran.r-project.org/bin/linux/debian/buster-cran35/Release.gpg', 'Release.gpg')
gpg_verify('Release', 'Release.gpg')

Installation

Binary packages for OS-X or Windows can be installed directly from CRAN:

install.packages("gpg")

Installation from source on Linux or OSX requires GPGME. On Debian or Ubuntu install libgpgme11-dev directly from Universe:

sudo apt-get install -y libgpgme11-dev

On Fedora and CentOS we need gpgme-devel:

sudo yum install gpgme-devel

On OS-X use gpgme from Homebrew:

brew install gpgme

On Solaris 10 we can have gpgme_dev from OpenCSW:

pkgadd -d http://get.opencsw.org/now
/opt/csw/bin/pkgutil -U
/opt/csw/bin/pkgutil -y -i gpgme_dev 
You can’t perform that action at this time.