DataTableOutput' is not an exported object from 'namespace:DT #R #Shiny

1,517 views
Skip to first unread message

Teiito

unread,
Jan 7, 2017, 4:02:59 AM1/7/17
to Shiny - Web Framework for R
Hello
I have little problem with DataTableOutput:
DataTableOutput' is not an exported object from 'namespace:DT
Actually I'm trying to understand syntax of DT, and i wrote code. Could you tell me what is wrong or why i have this problem?:
library(shiny)
library
(ggplot2)  # for the diamonds dataset
library
(DT)
ui
<-fluidPage(
  fluidRow
(
DT
::DataTableOutput('tak')
))
server
<-function(input, output) {
output$tak
<- DT::renderDataTable(
DT
::datatable(data)
)}
shinyApp
(ui=ui, server=serve)



And this is my sessionInfo:
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)


locale
:
[1] LC_COLLATE=Polish_Poland.1250  LC_CTYPE=Polish_Poland.1250  
[3] LC_MONETARY=Polish_Poland.1250 LC_NUMERIC=C                  
[5] LC_TIME=Polish_Poland.1250    


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


other attached packages
:
[1] DT_0.2        ggplot2_2.2.1 shiny_0.14.2


loaded via a
namespace (and not attached):
 
[1] Rcpp_0.12.8      assertthat_0.1   digest_0.6.11    mime_0.5         grid_3.3.2      
 
[6] R6_2.2.0         plyr_1.8.4       xtable_1.8-2     gtable_0.2.0     magrittr_1.5    
[11] scales_0.4.1     lazyeval_0.2.0   tools_3.3.2      htmlwidgets_0.8  munsell_0.4.3  
[16] httpuv_1.3.3    

Joe Cheng

unread,
Jan 8, 2017, 2:03:43 AM1/8/17
to Teiito, Shiny - Web Framework for R
You need a lower case d, like DT::dataTableOutput.
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/6bf6b3e4-40fd-421e-9c7c-11f3189c4d80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages