Comments (3)
Robin, Thanks for your interest in beakr.
We use beakr as the web service engine behind an operational Forest Service site displaying Monitoring data: https://tools.airfire.org/monitoring/v4
As described in the README, beakr is a ground up rewrite of the jug package which is now defunct. When plumber came out, we assessed it as a possible replacement but found it too constricting for what we wanted to do.
The beakr package tries to do for R what NodeJS Express does for javascript or Flask does for python. It tries to be absolutely minimalist and provides only core features: 1) stand up a web server; 2) map URL routes onto chunks of R code; 3) serve up static files; 4) handle errors.
We found the plumbr package to be targeted at those who have an R package with a well defined API who want to make that API available as a web service. For us, that is too restrictive. We want to define REST services first and then write whatever code we want to handle each REST URL. This allows us to add all sorts of cacheing, error handling and other code required in an operational system.
As an example of how we write scripts using beakr (and also MazamaCoreUtils) you should have a look at the beakr script for a plot service we currently have up to monitor AWS instances:
https://github.com/MazamaScience/mazama-plot-service/blob/master/plot-service/R/plot-service-app.R
The rest of that repository contains all the code needed to run this script in a docker container on our server. The results can be seen in a request for the API:
http://tools.mazamascience.com/plot-service/v1
or in a request for a plot:
I hope that answers some of your questions. Let me know if you have any more.
We are always happy to help folks doing open source environmental science!
from beakr.
Hi @jonathancallahan many thanks for your detailed reply. Sounds very interesting a promising. I'll close this issue as it answers my question but will keep a close eye on this project and potentially use it in future projects, will communicate if so!
from beakr.
Thanks for the tag @Robinlovelace and thanks for the replies @jonathancallahan. Flask and Express would certainly attract my attention. I had seen jug before resting on plumber
.
from beakr.
Related Issues (18)
- suggested rename: `beakr$route` ==> `beakr$routerObject`
- comparison with other frameworks -- submit to web frameworks benchmarker HOT 4
- complete "Web Frameworks for R" blog post
- submit plumber README.md pull request
- Add FUN parameter to handleErrors()
- cors() not working as described
- reformatted code snippets should work if copy-pasted
- serveStaticFiles() fails to server .html HOT 1
- docker article
- "try-err" ==> "try-error"
- beakr.verbose should be a class field, not a global option
- review function names `utils.R` for parts of speech
- Additional examples/tests HOT 1
- startBeakr() defaults HOT 1
- get local_examples/test_repeater_beakr.R to work HOT 1
- object documentation HOT 1
- need version of jug$set_header()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beakr.