由于缺少jquery调用,无法使用DT包

时间:2016-12-27 13:34:01

标签: r dt

我是第一次尝试使用DT库,但即使用最小的例子也似乎遇到了困难?

library(DT)
df = as.data.frame(cbind(matrix(round(rnorm(50), 3), 10), sample(0:1, 10, TRUE)))
datatable(df)
#Warning messages:
#1: In file.create(to[okay]) :
#  cannot create file 'lib/dt-core-1.10.12/js/jquery.dataTables.min.js', reason 'No such file or directory'
#2: In file.create(to[okay]) :
#  cannot create file 'lib/dt-core-1.10.12/css/jquery.dataTables.min.css', reason 'No such file or directory'
#3: In file.create(to[okay]) :
#  cannot create file 'lib/dt-core-1.10.12/css/jquery.dataTables.extra.css', reason 'No such file or directory'

我刚重新安装它。这是已安装的版本和我的sessionInfo:

> packageVersion("DT")
[1] ‘0.2’

> 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=English_United States.1252 
> LC_CTYPE=English_United States.1252    LC_MONETARY=English_United
> States.1252 [4] LC_NUMERIC=C                          
> LC_TIME=English_United States.1252    
> 
> attached base packages: [1] stats     graphics  grDevices utils    
> datasets  methods   base     
> 
> other attached packages: [1] DT_0.2
> 
> loaded via a namespace (and not attached): [1] htmlwidgets_0.7
> magrittr_1.5    htmltools_0.3.5 tools_3.3.2     yaml_2.1.13    
> Rcpp_0.12.7     jsonlite_1.1    [8] digest_0.6.10

检查了github问题......那里没有任何报道。有什么想法吗?

0 个答案:

没有答案