What’s this?

This is a test of embedding a Shiny app in a vignette and building a pkgdown site with it. If this works, you should see the Old Faithful app below.

shiny::shinyAppDir(
  system.file("examples/example-app", package="testShinyVignette")
)
#> Loading required package: shiny

Embedded Shiny app on web

Below, I’ve embedded one of the example Shiny apps that I’ve hosted on shinyapps.io. If this works, you should see the vaccination app below.

knitr::include_app('https://qdread.shinyapps.io/ex-shiny-long-data', height = '400px')

Diagnostics

sessionInfo()
#> R version 4.0.5 (2021-03-31)
#> Platform: x86_64-apple-darwin17.0 (64-bit)
#> Running under: macOS Catalina 10.15.7
#> 
#> Matrix products: default
#> BLAS:   /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/4.0/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] shiny_1.6.0             testShinyVignette_0.1.0
#> 
#> loaded via a namespace (and not attached):
#>  [1] Rcpp_1.0.6        knitr_1.31        magrittr_2.0.1    xtable_1.8-4     
#>  [5] R6_2.5.0          ragg_1.1.2        rlang_0.4.10      fastmap_1.1.0    
#>  [9] highr_0.8         stringr_1.4.0     tools_4.0.5       xfun_0.22        
#> [13] withr_2.4.1       jquerylib_0.1.3   systemfonts_1.0.1 ellipsis_0.3.1   
#> [17] htmltools_0.5.1.1 yaml_2.2.1        digest_0.6.27     rprojroot_2.0.2  
#> [21] lifecycle_1.0.0   pkgdown_1.6.1     crayon_1.4.1      textshaping_0.3.3
#> [25] later_1.1.0.1     sass_0.3.1        fs_1.5.0          promises_1.2.0.1 
#> [29] mime_0.10         memoise_2.0.0     cachem_1.0.4      evaluate_0.14    
#> [33] rmarkdown_2.7     stringi_1.5.3     compiler_4.0.5    bslib_0.2.4      
#> [37] desc_1.3.0        jsonlite_1.7.2    httpuv_1.5.5