cchn_register: Notifications: register your email address and get a token

View source: R/cchn_register.R

cchn_registerR Documentation

Notifications: register your email address and get a token

Description

Notifications: register your email address and get a token

Usage

cchn_register(email = NULL, token = NULL, ...)

Arguments

email

(character) email address to use for interaction with the CRAN checks API. If no email address is given, we go through a few steps: check for the cached file mentioned below for any emails; use whoami::email_address(); if the location you are running this in is a package, we look for the maintainer's email address in the package.

token

(character) your CRAN checks API token. you shouldn't need to pass a token here. if you used cchn_register() your token should be cached

...

Curl options passed to crul::verb-GET

Details

We cache a file with email addresses and tokens at the path file.path(rappdirs::user_data_dir("cranchecks", "cchecks"), "emails.csv") You can run that in R to get the path for the file on your machine.

To get a new token for an email address that was previously registered, go to the file above and delete the line with the email address and token for the email address in question; remember to save the change. Then when you run cchn_register() again for that email you can get a new token.

To add an email address that was validated before (probably on another machine), to the configuration file, call this function with the ‘email’ and ‘token’ arguments.

Value

NULL - nothing returned


ropenscilabs/cchecks documentation built on Sept. 14, 2022, 3:54 a.m.