Integration of GEM with R
cd C:\apps\).git clone https://github.com/ElectricityAuthority/gemR.git. This will create a copy of the gemR project in the location you navigated to in step 1.gemR folder and open the project in RStudio (double-click on gemR.Rproj).packrat package is installed (packrat is being used for package management and reproducibility). If it does not exist, RStudio will attempt to install it. (NOTE: if you have cloned the project to a mapped network drive you may see the error: cannot set reparse point ‘…gemR/packrat/lib-R/x86_64-w64-mingw32/3.5.1/base’, reason ’Access is denied. It is a known issue, just ignore it.)packrat::restore(). This will take a while but will only need to be done once - go grab a coffee!.Session > Restart R) - an important step!Files tab in RStudio to navigate to Programs/R/gemR_shiny/.ui.R and click the Run App button at the top right of the script.Run GEM tab, choose a run name, start and end dates and a demand file and click Run.Results tab.Files tab in RStudio to navigate to Programs/R/runGEM/.runGEM.R.Output/<run name>/Reports/plots/.dttm (datetime)tp (trading period)poc (point of connection)y (year)mn (month)d (day)MWh (demand in MWh)Note: an example is currently not provided on GitHub as the file is 170MB.
Data/Demand/Forecast/annual_energy_forecasts_by_GXP_2012_2050.csv). The file is currently set up in wide format with the first column being year and the remaining columns the POCs. Note: this file is out-of-date. There are only 180 POCs in this file.Programs/R/generateGEMDemand and open generateGEMDemand.R.year, forecast file, scenario suffix, etc.Data/Geography/mapPOCsToRegions.csv) - Note: this concordance is not complete/up-to-date for all POCs at the moment.Data/Demand/Archive_<datetime_suffix>. This file can then be used as an input to gemR.Sets, subsets and parameter input CSVs can be found in the GEMdataInput folder.
Setup variables ($setglobals and scalar variables) can be found in the Setup folder.
For more information see the following documentation.
log4r package)ui.R into css file.