gpt4 book ai didi

r - Shiny 的应用程序立即打开和关闭

转载 作者:行者123 更新时间:2023-12-04 10:32:04 25 4
gpt4 key购买 nike

我在尝试运行 shiny 应用程序时遇到此错误。这会使应用程序立即打开和关闭。

我得到的错误是:

Warning: Error in server: unused arguments (input = list(impl = <environment>, readonly = TRUE, ns = function (x) 
x), output = list(impl = <environment>, ns = function (x)
x))
Stack trace (innermost first):
45: server
4: <Anonymous>
3: do.call
2: print.shiny.appobj
1: <Promise>
Error in server(...) :
unused arguments (input = list(impl = <environment>, readonly = TRUE, ns = function (x)
x), output = list(impl = <environment>, ns = function (x)
x))

我不明白为什么会出现这个错误。

该应用是存储在 Shiny 应用中的示例应用之一。

最佳答案

问题出在您的服务器调用函数中。 shinyApp() 函数未获取服务器。

例如:

  1. serverShiny <-(函数(输入,输出){}
  2. 服务器 <-(函数(输入,输出){}

所以根据 shinyapp() 的调用,第二个是正确的,因为它传递了正确的名称

shinyApp(ui = ui, server = server)

它对我有用。同样的错误。希望对你有用

关于r - Shiny 的应用程序立即打开和关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40614363/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com