简体   繁体   中英

Deploy a shiny app - reactiveValues not found

I am trying to deploy my shiny app on shinyapps.io . The app runs fine in my console but when I deploy my app I get errors for reactiveValues , such as:

object 'Logged' not found

OR

Error in reactiveValues(Logged = Logged, registed = registed, Foget = Foget,  :  object 'Logged' not found

My script is more than 1000 lines, so, I was not sure that it is a good way to upload the whole script, that's why I decided to put the first few lines from the server that are about the reactiveValues .

Appriciate!

server = (function(input, output,session) {
Logged = FALSE;
registed = FALSE;
Foget = FALSE;
Started = FALSE;
tested = FALSE;
Saved = FALSE; 
USER <- reactiveValues(Logged = Logged,registed = registed, Foget=Foget, Started=Started,tested=tested,Saved=Saved)
...
...
...

使用“ <<-”将其声明为全局变量。建议您将所有变量声明为全局变量。

该代码应以以下行结尾:

shinyApp(ui = ui, server = server)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM