R interface to tools that help with the CRSS release process.
crssrelease is only available on GitHub. Install the latest released version:
# install.packages("remotes")
remotes::install_github("BoulderCodeHub/crssrelease", "v0.1.2")
Install the latest development version:
remotes::install_github("BoulderCodeHub/crssrelease")
combine the rdf files together. combine_rdfs()
.
Create excel files from the rdfs. See rdf_to_excel()
.
Rename the excel files so that the scenario name appears before the file name. See rename_excel_files()
.
Create excel files using RiverSMART.
Rename the excel files so that the scenario name appears before the file name. See rename_excel_files()
.
# two scenario groups
apr_dnf <- RWDataPlyr::rw_scen_gen_names(
"Apr2020_2021,DNF,2007Dems,IG_DCP",
paste0("Trace", sprintf("%02d", 4:38))
)
apr_st <- RWDataPlyr::rw_scen_gen_names(
"Apr2020_2021,ISM1988_2018,2007Dems,IG_DCP",
paste0("Trace", sprintf("%02d", 4:38))
)
# combine the rdfs
rdfs <- paste0(
c('KeySlots','Flags','CRSPPowerData', 'LBDCP', 'LBEnergy', 'OWDAnn', 'Res',
'SystemConditions'),
'.rdf'
)
scen_path <- "M:/Shared/CRSS/2020/Scenario"
dnf <- file.path(scen_path, "Apr2020_2021,DNF,2007Dems,IG_DCP")
dir.create(dnf)
st <- file.path(scen_path, "Apr2020_2021,ISM1988_2018,2007Dems,IG_DCP")
dir.create(st)
combine_rdfs(rdfs, apr_dnf, scen_path, dnf)
combine_rdfs(rdfs, apr_dnf, scen_path, st)
# create excel files from the combined rdfs
rdf_to_excel(rdfs, dnf)
rdf_to_excel(rdfs, st)
# rename the excel files
xlsx <- paste0(
c('KeySlots','Flags','CRSPPowerData', 'LBDCP', 'LBEnergy', 'OWDAnn', 'Res',
'SystemConditions'),
'.xlsx'
)
rename_excel_files(xlsx, c(dnf, st))
Create the CRSS zip package - see zip_crss_package()
in zip_crss_package.R. Note that it is likely easiest to create the zip package with some of the defaults, and then delete the files/folders that are not needed.
Create a list of changes since the last release. crss_changes_template()
will create a template for you that can then be knit to a pdf.
Add in the modeling assumptions to the zip package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.