我正在尝试使用plumber
运行简单代码
library(plumber)
plumber::plumb("simple_function.R")$run(port = "80")
返回错误:
Running plumber API at http://127.0.0.1:80
Running swagger Docs at http://127.0.0.1:80/__docs__/
Error in makeTcpServer(host, port, private$appWrapper$onHeaders, private$appWrapper$onBodyData, :
Not compatible with requested type: [type=character; target=integer].
今天早上一切都很好。在安装了Docker并构建了几个容器后,它就停止了。有什么想法吗?
将您的端口定义为数字
library(plumber)
plumber::plumb("simple_function.R")$run(port = 80)