From 628c3e13ecd4dcea61a6f525ee02df81a1f0b5a6 Mon Sep 17 00:00:00 2001 From: chainsawriot Date: Fri, 8 Sep 2023 18:01:41 +0200 Subject: [PATCH] Add a guide on how to update the internal data --- Makefile | 4 +++- data-raw/readme.md | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 data-raw/readme.md diff --git a/Makefile b/Makefile index b6af726..89cbc6d 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,12 @@ NAMESPACE: R/* README.md: README.Rmd Rscript -e "knitr::knit('README.Rmd')" +R/sysdata.rda: data-raw/single.json + Rscript data-raw/convert.R README.html: README.md pandoc -o README.html README.md -../$(pkg)*.tar.gz: DESCRIPTION NAMESPACE README.md R/* man/* tests/testthat/* po/R-rio.pot +../$(pkg)*.tar.gz: DESCRIPTION NAMESPACE README.md R/* man/* tests/testthat/* po/R-rio.pot R/sysdata.rda cd ../ && R CMD build $(pkg) build: ../$(pkg)*.tar.gz diff --git a/data-raw/readme.md b/data-raw/readme.md new file mode 100644 index 0000000..5623ced --- /dev/null +++ b/data-raw/readme.md @@ -0,0 +1,11 @@ + +Please edit the json file if you have made change related to formats. + +`convert.R` will prettify the json file as well as regenerate the internal data (`R/sysdata.rda`) + +If you prefer, you can also use the `Makefile` + +```R +make R/sysdata.rda +``` +