Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noamross/pbjob
Run R Scripts and Jobs with Pushbullet Alerts
https://github.com/noamross/pbjob
pushbullet pushbullet-api r
Last synced: 10 days ago
JSON representation
Run R Scripts and Jobs with Pushbullet Alerts
- Host: GitHub
- URL: https://github.com/noamross/pbjob
- Owner: noamross
- License: other
- Created: 2019-06-28T15:09:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-28T18:42:33.000Z (over 5 years ago)
- Last Synced: 2024-08-13T07:14:33.813Z (3 months ago)
- Topics: pushbullet, pushbullet-api, r
- Language: R
- Homepage:
- Size: 13.7 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - noamross/pbjob - Run R Scripts and Jobs with Pushbullet Alerts (R)
README
# pbjob
[![License:
MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![Travis build status](https://travis-ci.org/noamross/pbjob.svg?branch=master)](https://travis-ci.org/noamross/pbjob)
Run R scripts with Pushbullet Alerts
## Installation
``` r
remotes::install_github("noamross/pbjob")
```## Setup
To use this package you need to use [Pushbullet](https://www.pushbullet.com/) on
your mobile device or browser and to set up the
[**RPushbullet**](https://github.com/eddelbuettel/rpushbullet) package. Details
in that package README, but in short, do this just once:- Sign up for Pushbullet and install it on your devices/browsers if you haven't
already.
- Log in to , click on "Create Access
Token", and get the token.
- Run `RPushbullet::pbSetup()` to create a config file and
select your default devices to send messages to.
- Restart R## Functions
The package has six functions, each of which has an accompanying RStudio Add-In
- `source_and_pb(script_path)` runs a script and sends a Pushbullet alert when
it is complete. An alert is also sent if the script errors. If `script_path`
is `NULL`, the RStudio interface is used to select a file.
- `bg_and_pb()` runs the script in a background session with the same alerts.
It returns an [`r_process`](https://callr.r-lib.org/reference/r_bg.html) object.
- `job_and_pb()` runs the script as an RStudio Job with the same alerts. Note
that the progress bar will not display anything.
- `source_current_and_pb()`, `bg_current_and_pb()` and `job_current_and_pb()` do
the same but run the current active file in the RStudio editor. They're
especially handy if you [assign the Add-Ins keyboard shortcuts](https://support.rstudio.com/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts).
Note that background sessions are child processes of the R session in which they
are launched, and will be killed is if you quit or restart R.---
Please note that the 'pbjob' project is released with a
[Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this
project, you agree to abide by its terms.