eddelbuettel / rpushbullet

R interface to the awesome Pushbullet service
https://eddelbuettel.github.io/rpushbullet
94 stars 19 forks source link

Switch to jsonlite? #31

Closed eddelbuettel closed 7 years ago

eddelbuettel commented 7 years ago

Tried switching from (old) RJSONIO to (newer) jsonlite but simpleTests.R balks on file upload.

@restonslacker Can you take a peek? It is curl/jsonlite interaction. Somehow the token gets lost.

restonslacker commented 7 years ago

it appears that RJSONIO and jsonlite didn't quite align at how to unnest a single object. RSJONIO returned a vector with a single character and jsonlite was returning a list with a single string. that solved the issue for me.

eddelbuettel commented 7 years ago

I looked at it, suspecting such a minor difference, but somewhat I was too dense. Or had too little coffee.

restonslacker commented 7 years ago

given that it took me 5 commits to make that change, i'd say you're not alone.