Rray DT DataTables软件包的Ajax错误,适用于闪亮的应用程序

问题描述 投票:0回答:1

下面的以下闪亮应用程序代码:

library(shiny)
library(DT)

shinyApp(
    ui = fluidPage(
        fluidRow(
            column(12, dataTableOutput('table'))
        )
    ),
    server = function(input, output) {
        output$table <- DT::renderDataTable(iris)
    }
)

触发错误:

DataTables warning: table id=DataTables_Table_0 - Ajax error. For more information about this error, please see http://datatables.net/tn/7

ajax_error

使用软件包:

R version 3.6.2 (2019-12-12)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.2, RStudio 1.2.5033

Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8

Package version:
  assertthat_0.2.1     backports_1.1.5      base64enc_0.1.3      BH_1.72.0.3         
  cli_2.0.1            colorspace_1.4.1     crayon_1.3.4         crosstalk_1.0.0     
  digest_0.6.23        DT_0.11.3            ellipsis_0.3.0       fansi_0.4.1         
  farver_2.0.1         fastmap_1.0.1        ggplot2_3.2.1        glue_1.3.1          
  graphics_3.6.2       grDevices_3.6.2      grid_3.6.2           gtable_0.3.0        
  htmltools_0.4.0.9002 htmlwidgets_1.5.1    httpuv_1.5.2         jsonlite_1.6        
  labeling_0.3         later_1.0.0          lattice_0.20.38      lazyeval_0.2.2      
  lifecycle_0.1.0      magrittr_1.5         MASS_7.3.51.4        Matrix_1.2.18       
  methods_3.6.2        mgcv_1.8.31          mime_0.8             munsell_0.5.0       
  nlme_3.1.142         pillar_1.4.3         pkgconfig_2.0.3      plyr_1.8.5          
  promises_1.1.0       R6_2.4.1             RColorBrewer_1.1.2   Rcpp_1.0.3          
  reshape2_1.4.3       rlang_0.4.2          scales_1.1.0         shiny_1.4.0.9001    
  sourcetools_0.1.7    splines_3.6.2        stats_3.6.2          stringi_1.4.5       
  stringr_1.4.0        tibble_2.1.3         tools_3.6.2          utf8_1.1.4          
  utils_3.6.2          vctrs_0.2.1          viridisLite_0.3.0    withr_2.1.2         
  xtable_1.8.4         yaml_2.2.0           zeallot_0.1.0  

使用Chrome 79.0.3945。在CRAN软件包似乎不起作用之后,它正在使用针对Shiny和DT的最新开发软件包。

是否有解决此问题的方法?

r shiny dt
1个回答
0
投票

[更新两个建议软件包(htmlwidgets和jsonlite)的GitHub主版本,似乎按GitHub上的建议工作:https://github.com/rstudio/DT/issues/758

© www.soinside.com 2019 - 2024. All rights reserved.