2014-09-08 1 views
6

Ogni volta che provo a eseguire un'app con interattività (ad esempio l'input lucido nelle note del corso), ottengo un risultato simile al seguente. Ottengo l'ascolto su http: // ... subito dopo immettere runApp(). Ottengo l'errore non appena apro la pagina dell'URL. Ho provato a disinstallare e reinstallare sia lucido che rtools. L'unica differenza che ho visto come risultato delle mie azioni è che quando eseguo l'app, dove prima si apriva una finestra del browser in Chrome per l'app, ora si apre una finestra R che si chiude immediatamente.Errore lucido - Interattività utente/input non funzionante

> runApp() 

Listening on http://127.0.0.1:5066 
ERROR: [on_request_read] connection reset by peer 

ui.R

library(shiny) 
shinyUI(pageWithSidebar(
     headerPanel("Illustrating inputs"), 
     sidebarPanel(
       numericInput('id1', 'Numeric input, labeled id1', 0, min = 0, max = 10, step = 1), 
       checkboxGroupInput("id2", "Checkbox", 
            c("Value 1" = "1", 
            "Value 2" = "2", 
            "Value 3" = "3")), 
       dateInput("date", "Date:") 
     ), 
     mainPanel(
       h3('Illustrating outputs'), 
       h4('You entered'), 
       verbatimTextOutput("oid1"), 
       h4('You entered'), 
       verbatimTextOutput("oid2"), 
       h4('You entered'), 
       verbatimTextOutput("odate") 
     ) 
)) 

server.R

library(shiny) 
shinyServer(
     function(input, output) { 
       output$oid1 <- renderPrint({input$id1}) 
       output$oid2 <- renderPrint({input$id2}) 
       output$odate <- renderPrint({input$date}) 
     } 
) 

Sto utilizzando Windows 7 e Google Chrome come browser.

sessionInfo() restituisce il seguente:

R version 3.1.1 (2014-07-10) 
Platform: x86_64-w64-mingw32/x64 (64-bit) 

locale: 
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C       
[5] LC_TIME=English_United States.1252  

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

other attached packages: 
[1] shiny_0.10.1 

loaded via a namespace (and not attached): 
[1] bitops_1.0-6 caTools_1.17 digest_0.6.4 htmltools_0.2.4 httpuv_1.3.0 
[6] Rcpp_0.11.2  RJSONIO_1.3-0 tools_3.1.1  xtable_ 

Sys.info() uscita come segue [con credenziali utente rimossi]:

    sysname      release      version 
       "Windows"      "7 x64" "build 7601, Service Pack 1" 
       machine 
       "x86-64" 

risposta

0

Ho avuto questo stesso problema. Aveva a che fare con una funzione nel mio file server:

observe(input$file1, { 
     updateTabItems(session, "tabs", "upload") 
    } 
    ) 

ho cancellato e tutto è tornato a fini