You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running this gives me (omitting BiocGenerics start-up messages):
p<-plumber::plumb("plumber.R")
p$run()
## Running plumber API at http://127.0.0.1:7515## Error in nchar(ctype) :## cannot coerce type 'closure' to vector of type 'character'
Describe the problem in detail
BiocGenerics defines a type() function that is inadvertently found by plumber::responsesSpecification at
This is unlikely to be an issue with BiocGenerics, but rather, a general problem that would occur with any package that defines a type() function. In fact, the same error can be obtained after omitting the library(BiocGenerics) by doing:
System details
Output of
sessioninfo::session_info()()
:Example application or steps to reproduce the problem
The plumber script is as follows:
Running this gives me (omitting BiocGenerics start-up messages):
Describe the problem in detail
BiocGenerics defines a
type()
function that is inadvertently found byplumber::responsesSpecification
atplumber/R/openapi-spec.R
Lines 68 to 71 in 28bc58c
This is unlikely to be an issue with BiocGenerics, but rather, a general problem that would occur with any package that defines a
type()
function. In fact, the same error can be obtained after omitting thelibrary(BiocGenerics)
by doing:The text was updated successfully, but these errors were encountered: