The following guide walks you through how to add the Cancer InFocus specialty dashboard (e.g., CIF Tobacco, CIF Rural/Urban, etc.) to your institutions flexdashboard setup.

Note: This should be completed after completing the Cancer InFocus flexdashboard Setup Guide at https://rpubs.com/Cancer_InFocus/cif_flexdashboard.


1. Identify the Dashboards to Add

We currently publish four specialty dashboards that institutions may choose to link to:


2. Paste Code for Linking to Dashboards into cif_flexdashboard.Rmd

For each dashboard you want to add to your flexdashboard setup, you will want to copy-and-paste the following code chunk into cif_flexdashboard.Rmd. We recommend placing these between the CIF Hot Spots chunk and the Data Sources chunk:

[specialty dashboard name]
=======================================================================


``` r
#! replace with URL for CIF CA Data Downloads
knitr::include_app("[dashboard url]", height = '100%')
```

<iframe src="[dashboard url]?showcase=0" width="100%" height="100%" data-external="1"></iframe>

If you want to include multiple specialty dashboards and have them all appear as a submenu under one tab, include a data-navmenu paramaters in each code chunk like below:

CIF HPV {data-navmenu="Risk Factor Dashboards"}
=======================================================================


``` r
#! replace with URL for CIF CA Data Downloads
knitr::include_app("https://ukmcc-cif-hpv.share.connect.posit.cloud", height = '100%')
```

<iframe src="https://ukmcc-cif-hpv.share.connect.posit.cloud?showcase=0" width="100%" height="100%" data-external="1"></iframe>

3. Replace Placeholder Values

For each code chunk pasted into cif_flexdashboard.Rmd, you will want to replace the [specialty dashboard name] and [dashboard url] placeholders. The URLs for the specialty dashboards are:


4. Knit and Publish Updated flexdashboard

Once all of the additions are completed, you will want to knit and re-publish your cif_flexdashboard.Rmd file following the same instructions given in steps 4 and 5 at https://rpubs.com/Cancer_InFocus/cif_flexdashboard


By following these steps you will be able to link to the published CIF specialty dashboard through your own local CIF flexdashboard deployment. If you run into any issues, or have any comments for improving this tutorial, please contact us at .