Skip to content

Commit

Permalink
Add a guide on how to update the internal data
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsawriot committed Sep 8, 2023
1 parent 1378503 commit 628c3e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions data-raw/readme.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit 628c3e1

Please sign in to comment.