Shiny app not working
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Reproduce the issue with the R example, first checking the @shiny /devApp endpoint and then the api_shiny('/ui/', ...) pipeline through api_run(). Compare the working echo endpoint with the Shiny responses and verify whether the @shiny tag is available in autocomplete; done means the Shiny endpoint runs without 404 or Internal Server Error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello,
Let me start by saying I think it's great what's possible in this new version of Plumber!
I was particularly interested in running a Shiny app through the API, but unfortunately I cannot seem to make this work. Below is my (hopefully) reproducible example
#* Echo the parameter that was sent in
#*
#* @get /echo/<msg>
#*
#* @param msg:string The message to echo back.
#*
function(msg) {
list(
msg = paste0("The message is: '", msg, "'")
)
}
#* @shiny /devApp
shiny::shinyAppDir(system.file("examples-shiny", "01_hello", package = "shiny"))
When I now click the Run API button in R Studio, the server starts, and the echo endpoint is working. However, if I navigate to the devApp endpoint I get {"error":"404 - Resource Not Found"}
Also the @shiny tag is not suggested in autocomplete and seems to be absent from the package
When I tried running
api() |>
api_shiny(
"/ui/",
shiny::shinyAppDir(
system.file("examples-shiny", "01_hello", package = "shiny")
)
) |>
api_run()
This did initially work when I navigated to the UI endpoint. However, now it's also broken giving me Internal Server Error (I tried installing the dev version and the the original one again so maybe that's the reason here?)
Thanks again for creating this new version!
PJ
- Lingua principale
- R
- Stelle
- 119
- Fork
- 17
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di posit-dev/plumber2
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
`except` argument in `Plumber2$add_shiny` method is not respectedForse già presa @cgiachalis l’ha presa 139 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
-
Development RoadmapAperta
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 20/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
Tutte le issue di posit-dev/plumber2
Issue simili
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothApertaarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Apich-Organization/rssn#383 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PRL-PRG/r-compile-server#70 · 1 commento ·
-
dependencies docker enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
posit-dev/images-workbench#257 ·
I maintainer di solito rispondono entro 1 giorno
-
dependencies docker enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
posit-dev/images-package-manager#188 ·
I maintainer di solito rispondono entro 1 giorno
-
dependencies docker enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
posit-dev/images-connect#222 ·
I maintainer di solito rispondono entro 1 giorno