Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pbSetup: load token #52

Closed
csgillespie opened this issue Jul 11, 2019 · 1 comment

Comments

@csgillespie
Copy link
Contributor

commented Jul 11, 2019

On the initial set-up using pbSetup() the key is forgotten.

  • Proposal: after running pbSetup() load the key using the same mechanism as library(RPushbullet) uses
    Happy to submit a PR

Example:

library(RPushbullet)
#Attaching RPushbullet version 0.3.1.
# No file ~/.rpushbullet.json found. Consider
pbSetup("XXX")
pbPost("note", "test")
# Error: Neither option 'rpushbullet.key' nor entry in package environment found. Aborting

Restarting R

library(RPushbullet)
pbPost("note", "test")

now works

@eddelbuettel

This comment has been minimized.

Copy link
Owner

commented Jul 11, 2019

Interesting. Clearly an overisght.

A nice little PR (including a ChangeLog entry) would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.