sol-eng / plumber-model

Plumber ML Model deployment example
Apache License 2.0
44 stars 27 forks source link

error in executing entrypoint.R #5

Open sbarkakati opened 4 years ago

sbarkakati commented 4 years ago

I am getting below error while trying to run the code from model-api/entrypoint.R

Error in if (swagger) { : argument is not interpretable as logical

what am i missing here?

th3walkingdud3 commented 4 years ago

It looks like the custom swagger spec specified in entrypoint.R is not supported in the cran release of plumber. I have not tried it, but you may consider trying the devel version of plumber from gitub.

Alternately, if you remove the swagger spec call, the API will launch but most likely not function as intended. (edit line 5 to simply this: pr$run(port = 5762) )