CRAN
jug 0.1.7
A Simple Web Framework for R
Released Apr 13, 2017 by Bart Smeets
Dependencies
httpuv 1.3.5 magrittr 1.5 R6 2.2.2 mime 0.5 jsonlite 1.5 infuser 0.2.8 base64enc 0.1-3 webutils 0.6
jug is a web framework aimed at easily building APIs. It is mostly aimed at exposing R functions, models and visualizations to third-parties by way of http requests.
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies> <dependency> <groupId>org.renjin.cran</groupId> <artifactId>jug</artifactId> <version>0.1.7-b7</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.cran:jug')
Test Results
This package was last tested against Renjin 0.8.2543 on Dec 17, 2017.
- testing_Request_class.A_variable_is_correctly_attached_to_a_request
- testing_function_decorator.The_correct_response_is_returned_by_a_decorated_function_(using_a_header_value)
- testing_function_decorator.The_correct_response_is_returned_by_a_decorated_function_(using_a_querystring_value)
- testing_get_requests.The_correct_response_is_returned_for_a_(bare)_GET_request_with_a_content_type_of_NULL
- testing_get_requests.The_correct_response_is_returned_for_a_(bare)_GET_request_with_an_explicitely_set_body
- testing_get_requests.The_multiple_middlewares_set_up_for_one_GET_path_by_annotating_the_request
- testing_get_requests.The_multiple_middlewares_set_up_for_one_GET_path_by_annotating_the_response
- testing_handler_adding.handlers_are_correctly_added_to_the_jug_instance
- testing_including_collectors.A_local_collector_is_correctly_included
- testing_including_collectors.An_external_collector_is_correctly_included
- testing_static_file_server_middleware.The_static_file_is_loaded_correctly
- testthat