作为可重现的示例,我们可以使用以下ui.R
和server.R
文件:
https://github.com/bcaffo/courses/tree/master/09_DevelopingDataProducts/shiny/inputApp
当我在RStudio中运行runApp()
时,内部RStudio查看器会显示如下界面:
这很好,但是当我点击“在浏览器中打开”时,Chrome和Firefox版本看起来像这样:
是什么给出了?
> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
other attached packages:
[1] shiny_0.10.2.1
loaded via a namespace (and not attached):
[1] digest_0.6.4 htmltools_0.2.6 httpuv_1.3.2
[4] mime_0.2 R6_2.0.1 Rcpp_0.11.3
[7] RJSONIO_1.3-0 tools_3.1.2 xtable_1.7-4