Code Monkey home page Code Monkey logo

Comments (1)

hmrtn avatar hmrtn commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.