0

I have an API created by plumber in a file named lltoClass.R as follows:

#* @get/ ll.toClass
ll.toClass <- function ...

Also, according to this question I have made a file named plumber.R containing:

library(plumber)
plumber::plumb("lltoClass.R")

according to this I executed rsconnect::deployAPI(api = "./project") and it successfully deployed to my shinyapps.io account. but unfortunately only get this text on url of my api which automatically opened after completing the process of deploy:

"An error has occurred unable to launch worker: API content cannot be run on this installation of RStudio Connect. Contact your administrator."

as I have tested my api on localhost I don't think its problem is due to my code. how can I fix this problem or how can I upload my API and use it publicly?

GGamba
  • 13,140
  • 3
  • 38
  • 47
mjoudy
  • 149
  • 1
  • 1
  • 10

1 Answers1

1

According to this comment and that issue on github, plumber APIs are currently not supported on shinyapps.io.

Ralf Stubner
  • 26,263
  • 3
  • 40
  • 75
  • Is there any other place to upload it freely? It is a test project and I will not use this API many times. – mjoudy May 23 '18 at 12:18
  • 1
    Ralf is correct; Plumber currently isn't supported on ShinyApps.io. See https://www.rplumber.io/docs/hosting.html for other options. – Jeff Allen May 23 '18 at 14:10
  • @mjoudy I do not know any free and easy service. With some effort, you could deploy your own using some free cloud server (e.g. https://cloud.google.com/free/) – Ralf Stubner May 23 '18 at 14:56