Unable to create my first shiny app.

22 views
Skip to first unread message

Amar Kumar

unread,
Oct 27, 2014, 2:45:25 PM10/27/14
to shinyap...@googlegroups.com
Dear Friends,
I am trying to create my first shiny app. However, I am finding it too confusing because of the errors I am getting. Need your help please.

I want to create visualization for World Bank Development Indicators. I am attaching the indicators list herewith.
For the selected indicator, I should get the data table.  But it is not working out. I only see a dropdown list of indicators rather than selection list with the table.

Thanks for reading.


My UI.R is

indicators<-read.xlsx2("C:/Users/A561568/Downloads/WDI_April2013_CETS.xls", 1)

shinyUI(basicPage(
    selectInput("id1", "Indiactor-I", choices=levels(indicators$Series.Code), width="100%"),
    dataTableOutput('table1'),
    textOutput('text1')
))


My SERVER.R is

library(shiny)
library(WDI)
shinyServer(
    function(input, output) {
        data1 <- reactive(WDI(input$id1,country = "all", extra=T))
        output$table1<-renderDataTable(data1)
        output$text1 <- renderText({dim(data1)})
        
    })


However, I am unable 
WDI_April2013_CETS.xls

Tareef Kawaf

unread,
Oct 27, 2014, 11:17:36 PM10/27/14
to Amar Kumar, shinyap...@googlegroups.com
Amar,
Does your app run properly locally?  if you are new to Shiny, it is probably best to ask Shiny related questions on the shiny-discuss discussion list.

Best,
Tareef

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/308f7e1c-3326-4df8-84a4-020266c6ac5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amar Kumar

unread,
Oct 28, 2014, 3:38:31 AM10/28/14
to shinyap...@googlegroups.com
Thanks ...will do so.
Reply all
Reply to author
Forward
0 new messages