Comments (1)
This does work. Beakr does require considering some slight semantic differences for accessing the methods of the req
, res
, err
. Most method names should be the same, except they are camel-case, rather than underscored, and typically not abbreviated. Here are some examples of difference in the test_repeater
's.
# Beakr Version:
text <- setIfNull(req$parameters$text, "Howdy")
# Jug version:
text <- setIfNull(req$params$text, "Howdy")
# Beakr Version:
res$contentType(mime::mimemap[responseType])
# Jug Version:
res$content_type(mime::mimemap[responseType])
I have pushed the fixed version.
I am certainly not opposed for name changes and using underscores if you prefer - as long as we are consistent package-wide.
Keep in mind, all available methods to the user can be seen in the documentation. For example: help('Response')
.
As for the Stop button thing - sourcing or running R code while another process is running will queue the processes. Its really easy to forget the running beakr and hit the source button when one is running, only to open another beakr on the previous one's stop.
from beakr.
Related Issues (18)
- suggested rename: `beakr$route` ==> `beakr$routerObject`
- Comparison with plumber HOT 3
- 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
- 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.