Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd functionality to support Pushbullet Channels #18
Comments
|
Here are some suggested steps in order to implement this:
|
|
Good points. In order:
I'll get to work on your other submissions in a bit. |
|
Hi @mikebirdgeneau -- Happy New year! I guess the holidays/new year got in the way. Shall we resume testing this? |
|
Hi @eddelbuettel - Happy new year to you as well. I found myself quite busy with my day job! For testing, we may be able to use the JSON results to develop logic to ensure that tests pass as intended. Do you have any good examples of where you perform tests for another package that might be a good template to follow? All changes are in my fork here: I'll create a pull request to review and discuss the changes. |
|
Thanks so much -- looks really promising so far. |
|
I added some support in However, it looks like broke/lost some functionality. Very first test: R> pbPost("note", "A Simple Test", "We think this should work.\nWe really do.")
Error in FUN(""[[1L]], ...) :
argument "email" is missing, with no default
R> |
|
I've updated the tests to use those variables you've added and submitted a pull request (#21). |
|
Awesome. I spent most of yesterday with Rcpp* so I did not get to it. I think I'll rewrite tests/simpleTests.R as a caller to 'normal' unit tests, that way we can spread out the combinations of type and recipient. OK if I use RUnit which has been reliable for me in the past? |
|
I've never used RUnit, so I'm happy to follow your lead on this! |
|
Yes, sorry -- just replaced your remaining test email and channel settings. I think I fixed why the first call in the test script failed, we tested |
|
Just committed -- give it a whirl when you have moment. |
|
Ok, I no longer think we have to go to RUnit. So no rush there. But you had made some comments days ago about a README (or Rd file?) needing to change once we have channels. As channels now work, a) what is that edit, and b) shall we make it? |
|
Everything seems to be working for me at the moment. |
|
Ok, great -- as this wasn't a PR I just took it by hand. Will do the same with technically open PR and then close it, ok? |
Refer to 57ebf50 for an update to documentation describing how to create channels for Pushbullet, and a brief reference to the Pushbullet API and the target parameter
channel_tagwhich allows the target channel to be specified for a push.