An R package that provides template workflows for license data preparation and dashboard production. These templates make use of several other SA-built R packages: salic, salicprep, workflow, sadash.
From the R console:
install.packages("remotes")
remotes::install_github("southwick-associates/lictemplate")
Lictemplate provides functions to automate license data workflows:
new_project()
for a basic processing workflow (e.g., national/regional dashboards)new_project_summary()
for states that provide summarized data for national/regional dashboardsnew_project_individual()
for the more involved individual state dashboardsupdate_project()
to copy the workflow from an earlier time period with updated parameterssetup_data_dive()
to add code neeeded for a data dive projectdata_archive()
and data_backup()
for managing license dataTo begin a new project, first create data directories and template files for analysis. For example, creating a South Dakota dashboard project on the server:
lictemplate::new_project("SD", "2019-q4")
## A new license data project has been initialized:
## E:/SA/Projects/Data-Dashboards/SD/2019-q4
Next, open the Rstudio project just created and build the project package library with package renv:
renv::restore()
See package salicprep for data processing guidelines.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.