我这里升级了 xfun servr xaringan,Viewer 面板终于可以预览了,然而仍然没有出现实时更新的究极效果。
比较奇怪的现象是,只要安装开发版 xaringan 0.8.14,那么在运行 sessionInfo()
时就会出来一大堆警告。如果换成 xaringan v0.8,就没有警告。
> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 14393)
Matrix products: default
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.5 leaflet_2.0.2
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 compiler_3.5.2 later_0.8.0 remotes_2.0.2 prettyunits_1.0.2 tools_3.5.2 digest_0.6.18
[8] pkgbuild_1.0.2 pkgload_1.0.2 jsonlite_1.6 evaluate_0.13 memoise_1.1.0 rlang_0.3.1 shiny_1.2.0
[15] cli_1.0.1 rstudioapi_0.9.0 crosstalk_1.0.0 yaml_2.2.0 xfun_0.5.1 withr_2.1.2 stringr_1.4.0
[22] knitr_1.21 fs_1.2.6 desc_1.2.0 htmlwidgets_1.3 devtools_2.0.1 rprojroot_1.3-2 glue_1.3.0
[29] R6_2.4.0 processx_3.2.1 rmarkdown_1.11 xaringan_0.8.14 sessioninfo_1.1.1 callr_3.1.1 magrittr_1.5
[36] servr_0.12.8 usethis_1.4.0 backports_1.1.3 promises_1.0.1 ps_1.3.0 htmltools_0.3.6 assertthat_0.2.0
[43] mime_0.6 xtable_1.8-3 httpuv_1.4.5.1 stringi_1.3.1 crayon_1.3.4
There were 21 warnings (use warnings() to see them)
> warnings()
Warning messages:
1: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
2: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
3: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
4: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
5: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
6: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
7: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
8: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
9: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
10: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
11: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
12: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
13: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
14: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
15: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
16: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
17: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
18: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
19: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
20: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
21: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
Warning messages:
1: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
2: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
3: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
4: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
5: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
6: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
7: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
8: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]
9: In matrix(idx, nrow = 2) :
data length [31] is not a sub-multiple or multiple of the number of rows [2]