【发布时间】:2020-01-24 21:21:56
【问题描述】:
下面的 Shiny 应用代码如下:
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
使用包:
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 包似乎不起作用之后,这是使用用于闪亮和 DT 的最新开发包。
这个问题有解决方法吗?
【问题讨论】:
-
对我来说很好用,可能是你的电脑。这是在防火墙后面的网络上吗? (即公司网络?)在此处查看错误解决方案:datatables.net/manual/tech-notes/7
-
我尝试了不同的浏览器、网络和禁用浏览器插件。