Questions tagged [plumber]

plumber is an R package used to create HTTP APIs from R. It uses annotations above your function definitions to define the structure of your API using existing R code.

The plumber R package allows R users to create HTTP APIs from their R code.

  • Official documentation - Includes documentation about the various features and online examples.
  • CRAN - The package is available on CRAN for easier installation.
307 questions
0
votes
1 answer

Call the function as argument in another function in R

I am Developing an API for that I am using Plumber. I have created two function with its each endpoint. I want to use function 1 as argument in function 2 OR inheritance for example function 1 should be my parent class and function 2 will be my…
0
votes
1 answer

Inheritance OR Call the function from another function in R

I am Developing an API for that I am using Plumber were I have created function and wanted to call the function into another function. Suppose First Function can be called by Second Function or Second function can be function be third…
0
votes
0 answers

how to call and automatically run plumber api from php

I am creating Web Application where all my data is retrieved from package. I have constructed an API using plumber and I want to call the API and run automatically when needed from front-end. All time when I wanted to do anything in the front-end I…
0
votes
0 answers

Centering annotate label dont work properly in docker image

I'm creating an image using ggplot2 and ggiraph to my API in plumber. I am using RStudio on Windows. When I create an local API (that plumber provides in Swagger) everything seems ok to me. But, when i use my Docker File with the command docker…
0
votes
0 answers

How to update the plumber server smoothly?

Recently I was using plumber to make API. But after deployed with docker, if I want to add some new api functions, the thing I have to do is to restart the docker. This makes the service not smooth. Is there any better way?
roy
  • 1
  • 2
0
votes
1 answer

Plumber returns Error in makeTcpServer, how to troubleshoot?

I am trying to run simple code with plumber library(plumber) plumber::plumb("simple_function.R")$run(port = "80") It returns error: Running plumber API at http://127.0.0.1:80 Running swagger Docs at http://127.0.0.1:80/__docs__/ Error in…
user1700890
  • 7,144
  • 18
  • 87
  • 183
0
votes
1 answer

Plumber in container on Azure how to map ports

I build container with plumber API inside. It runs on port 80 in container and I also exposed port 80. I also mapped ports az container create ... --ports 80:80 Since Azure only support symmetrical port mapping. But I still cannot reach my API from…
user1700890
  • 7,144
  • 18
  • 87
  • 183
0
votes
2 answers

@Param Plumber Doens't work with Highcharts - R

My param in plumber API doens't work in hcaes highcharts. I get dplyr error. I need to select a column using @param. Like df24hr[,partic24hr] but returns error. My code... #* Return interactive plot #* @serializer htmlwidget #* @param partic24h Tipo…
0
votes
1 answer

Combining R plumber and RAppArmor

I simply want to combine the packages plumber and RAppArmor in a way, that users can send code using the plumber-API to a server which is then safely evaluated with the help of profiles in RAppArmor. How can I make the following code work: #*…
Myoujin
  • 3
  • 3
0
votes
2 answers

Run a Multiple function with same argument but it skip first function and print second function using plumber in R

i have main function which include two sub function with same argument in both function fun1 and fun2 and function prints fun2 but unable to print fun1 using plumber in swagger console don't know why? and here is my…
0
votes
1 answer

Plumber R Render a svg file

Im using plumber 1.0.0 to create an API GET and I want to render an svg with dynamic resolution Reading the documentation we see that is possible change the resolution in a static way. But I need that the API calls this function with the parameters…
0
votes
1 answer

Leafpop Popupgraph doens't work with Plumber - R

if I run my code without plumber function, the popupgraph does work well. but if I run with plumber function, I receive error 404 of web. Any idea how to resolve this? to popupgraph works with plumber…
0
votes
0 answers

Download option in R plumber api

Hi all, I want to add download option in R plumber api,where a R markdown report will be download as word file.please let me know how to do it in plumber. I get some code,but its not working #* @serializer contentType…
0
votes
2 answers

How to read R Plumber function parameters data from another script?

Let say there is R code for REST API based on using the "plumber" package. Here is a function from it. #' Date of sale #' @get /date_of_sale #' @param auth_key Auth key #' @param user_id User ID #' @example…
Andrii
  • 2,843
  • 27
  • 33
0
votes
0 answers

Add HTTPS with R Plumber API

I just bought a domain and am trying to set up HTTPS redirection on my R Plumber API hosted on Digital Ocean. I made sure that the droplet IP is pointing to the domain and checked that it works. So currently I can access the plumber API over HTTP. I…
jang119
  • 15
  • 3