本書介如何使用R語言以及Shiny App開發資料科學相關的網頁應用程式,包括互動式圖表儀表板互動式資料分析服務等,大部分內容由RStudio官方教學Shiny文件統整翻譯而成。

本書仍在草稿撰寫階段,已完成第1至5章,後續章節逐步更新中。

如要一次安裝所有本書會使用到的套件,可在R內執行以下程式碼:

如果您想修改文字或範例,歡迎透過 GitHub issue提供建議與回饋。

本書程式碼執行環境:

## R version 3.6.1 (2019-07-05)
## Platform: x86_64-apple-darwin15.6.0 (64-bit)
## Running under: macOS Catalina 10.15.3
## 
## Matrix products: default
## BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
## LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
## 
## locale:
## [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
##  [1] leaflet_2.0.3        shinyloadtest_1.0.1  profvis_0.3.6       
##  [4] shinydashboard_0.7.1 shinythemes_1.1.2    rsconnect_0.8.15    
##  [7] shiny_1.4.0.2        forcats_0.4.0        stringr_1.4.0       
## [10] dplyr_0.8.3          purrr_0.3.3          readr_1.3.1         
## [13] tidyr_1.0.0          tibble_2.1.3         ggplot2_3.2.1       
## [16] tidyverse_1.3.0     
## 
## loaded via a namespace (and not attached):
##  [1] nlme_3.1-140       fs_1.3.1           sf_0.8-0           lubridate_1.7.4   
##  [5] httr_1.4.1         tools_3.6.1        backports_1.1.5    R6_2.4.0          
##  [9] KernSmooth_2.23-15 rgeos_0.5-2        DBI_1.0.0          lazyeval_0.2.2    
## [13] colorspace_1.4-1   withr_2.1.2        sp_1.3-1           tidyselect_0.2.5  
## [17] curl_4.2           compiler_3.6.1     cli_1.1.0          rvest_0.3.5       
## [21] xml2_1.2.2         bookdown_0.14      scales_1.0.0       classInt_0.4-2    
## [25] askpass_1.1        digest_0.6.21      foreign_0.8-71     rmarkdown_1.16    
## [29] pkgconfig_2.0.3    htmltools_0.4.0    dbplyr_1.4.2       fastmap_1.0.1     
## [33] highr_0.8          htmlwidgets_1.5.1  rlang_0.4.4        readxl_1.3.1      
## [37] rstudioapi_0.10    httpcode_0.2.0     generics_0.0.2     jsonlite_1.6      
## [41] crosstalk_1.0.0    magrittr_1.5       Rcpp_1.0.2         munsell_0.5.0     
## [45] lifecycle_0.1.0    stringi_1.4.3      yaml_2.2.0         jqr_1.1.0         
## [49] maptools_0.9-8     grid_3.6.1         promises_1.1.0     crayon_1.3.4      
## [53] geojsonio_0.9.0    lattice_0.20-38    haven_2.2.0        geojson_0.3.2     
## [57] hms_0.5.3          knitr_1.25         pillar_1.4.2       servr_0.15        
## [61] crul_0.9.0         reprex_0.3.0       glue_1.3.1         packrat_0.5.0     
## [65] evaluate_0.14      V8_3.0.2           modelr_0.1.6       png_0.1-7         
## [69] vctrs_0.2.3        httpuv_1.5.2       cellranger_1.1.0   openssl_1.4.1     
## [73] gtable_0.3.0       assertthat_0.2.1   xfun_0.10          mime_0.7          
## [77] xtable_1.8-4       broom_0.5.2        e1071_1.7-2        later_1.0.0       
## [81] class_7.3-15       units_0.6-5

本書使用套件版本:

Package Version
tidyverse 1.3.0
shiny 1.4.0.2
rsconnect 0.8.15
shinythemes 1.1.2
shinydashboard 0.7.1
profvis 0.3.6
shinyloadtest 1.0.1

本著作係採用創用 CC 姓名標示-非商業性-禁止改作 3.0 台灣 授權條款授權。