Skip to content

Commit

Permalink
Automate production of package internal data
Browse files Browse the repository at this point in the history
Verified identical with old internal data.
  • Loading branch information
rplzzz committed Sep 21, 2017
1 parent e970aec commit f4e20a2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions data-raw/sysdata.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Generate the internal data for the package
## This must be sourced as a script because of the way devtools::use_data works.
## Source it from the top level of a development copy of the package.


source('data-raw/gdpdef.R')
gdpdef <- calc.gdpdef('data-raw/GDPDEF.csv')

source('data-raw/energyconv.R')
energyconv <- prep.energyconv()

devtools::use_data(gdpdef, energyconv, internal=TRUE, overwrite=TRUE,
compress='xz')

0 comments on commit f4e20a2

Please sign in to comment.