pbValidateConf: Check if a configuration is valid

View source: R/setup.R

pbValidateConfR Documentation

Check if a configuration is valid

Description

Check if a configuration is valid

Usage

pbValidateConf(conf = NULL)

Arguments

conf

Either a file path (like ~/.rpushbullet.json) or a JSON string. If NULL (the default), the value of getOption("rpushbullet.dotfile") will be used.

Value

TRUE if both the api key and all devices are vaild. FALSE otherwise.

Examples

pbValidateConf('{"key":"a_fake_key","devices":["dev_iden1","dev_iden2"]}')


eddelbuettel/rpushbullet documentation built on Dec. 4, 2022, 2:33 a.m.