diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 6239579..de775c3 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -22,6 +22,7 @@ jobs: - uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true + r-version: 'renv' - uses: r-lib/actions/setup-r-dependencies@v2 with: diff --git a/.github/workflows/render-README.yaml b/.github/workflows/README.-check.yaml similarity index 96% rename from .github/workflows/render-README.yaml rename to .github/workflows/README.-check.yaml index a173a06..f5b710f 100644 --- a/.github/workflows/render-README.yaml +++ b/.github/workflows/README.-check.yaml @@ -4,14 +4,14 @@ on: paths: - 'README.qmd' -name: render-README +name: README-check permissions: contents: write pull-requests: write jobs: - render-README: + README-check: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/dataset-check.yaml b/.github/workflows/dataset-check.yaml new file mode 100644 index 0000000..48fd459 --- /dev/null +++ b/.github/workflows/dataset-check.yaml @@ -0,0 +1,51 @@ +on: + push: + paths: + - 'data-raw/generate_data.R' + - 'data-raw/corpus/*' + pull_request: + paths: + - 'data-raw/generate_data.R' + - 'data-raw/corpus/*' + +name: dataset-check + +permissions: + contents: write + pull-requests: write + +jobs: + dataset-check: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Setup R + uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + r-version: 'renv' + + - name: Install dependencies + uses: r-lib/actions/setup-r-dependencies@v2 + with: + packages: + any::glue + any::scales + any::usethis + any::dplyr + any::readr + any::roxygen2 + extra-packages: + local::. + + - name: Run Rscript + run: Rscript 'data-raw/generate_data.R' + + - name: Update pull request + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Regenerate datasets and/or dataset documentation + file_pattern: 'R/data.R data/*.rda' diff --git a/README.md b/README.md index d16af08..c89477f 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ H. P. Lovecraft's signature in an R package hexagon [![R-CMD-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/R-CMD-check.yaml) -[![render-README](https://github.com/jrdnbradford/lovecraftr/actions/workflows/render-README.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/render-README.yaml) +[![README-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/README-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/README-check.yaml) +[![dataset-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/dataset-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/dataset-check.yaml) > The most merciful thing in the world, I think, is the inability of the > human mind to correlate all its contents. We live on a placid island diff --git a/README.qmd b/README.qmd index 6f1f4bf..d814502 100644 --- a/README.qmd +++ b/README.qmd @@ -17,7 +17,8 @@ knitr::opts_chunk$set( H. P. Lovecraft's signature in an R package hexagon [![R-CMD-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/R-CMD-check.yaml) -[![render-README](https://github.com/jrdnbradford/lovecraftr/actions/workflows/render-README.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/render-README.yaml) +[![README-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/README-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/README-check.yaml) +[![dataset-check](https://github.com/jrdnbradford/lovecraftr/actions/workflows/dataset-check.yaml/badge.svg)](https://github.com/jrdnbradford/lovecraftr/actions/workflows/dataset-check.yaml) > The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents. We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far. The sciences, each straining in its own direction, have hitherto harmed us little; but some day the piecing together of dissociated knowledge will open up such terrifying vistas of reality, and of our frightful position therein, that we shall either go mad from the revelation or flee from the light into the peace and safety of a new dark age. diff --git a/data-raw/corpus/at_the_mountains_of_madness b/data-raw/corpus/at_the_mountains_of_madness index 77d4d50..be14879 100644 --- a/data-raw/corpus/at_the_mountains_of_madness +++ b/data-raw/corpus/at_the_mountains_of_madness @@ -1,6 +1,6 @@ AT THE MOUNTAINS OF MADNESS -I + I am forced into speech because men of science have refused to follow my advice without knowing why. It is altogether against my will that I tell my reasons for diff --git a/data/at_the_mountains_of_madness.rda b/data/at_the_mountains_of_madness.rda index 6ded64e..c4f84fe 100644 Binary files a/data/at_the_mountains_of_madness.rda and b/data/at_the_mountains_of_madness.rda differ diff --git a/data/azathoth.rda b/data/azathoth.rda index 442f0b0..12d35d6 100644 Binary files a/data/azathoth.rda and b/data/azathoth.rda differ diff --git a/data/beyond_the_wall_of_sleep.rda b/data/beyond_the_wall_of_sleep.rda index 15e1117..5696259 100644 Binary files a/data/beyond_the_wall_of_sleep.rda and b/data/beyond_the_wall_of_sleep.rda differ diff --git a/data/celephais.rda b/data/celephais.rda index 2f90bf1..d415b68 100644 Binary files a/data/celephais.rda and b/data/celephais.rda differ diff --git a/data/cool_air.rda b/data/cool_air.rda index 5f21564..ae021d9 100644 Binary files a/data/cool_air.rda and b/data/cool_air.rda differ diff --git a/data/dagon.rda b/data/dagon.rda index d954b0f..ef611b7 100644 Binary files a/data/dagon.rda and b/data/dagon.rda differ diff --git a/data/dreams_in_the_witch_house.rda b/data/dreams_in_the_witch_house.rda index 240dbd3..bb9fca3 100644 Binary files a/data/dreams_in_the_witch_house.rda and b/data/dreams_in_the_witch_house.rda differ diff --git a/data/ex_oblivione.rda b/data/ex_oblivione.rda index ccfa322..18e7daa 100644 Binary files a/data/ex_oblivione.rda and b/data/ex_oblivione.rda differ diff --git a/data/facts_concerning_the_late_arthur_jermyn_and_his_family.rda b/data/facts_concerning_the_late_arthur_jermyn_and_his_family.rda index 362b8cc..39a95ee 100644 Binary files a/data/facts_concerning_the_late_arthur_jermyn_and_his_family.rda and b/data/facts_concerning_the_late_arthur_jermyn_and_his_family.rda differ diff --git a/data/from_beyond.rda b/data/from_beyond.rda index e71c6f4..716745e 100644 Binary files a/data/from_beyond.rda and b/data/from_beyond.rda differ diff --git a/data/he.rda b/data/he.rda index f626146..22cad87 100644 Binary files a/data/he.rda and b/data/he.rda differ diff --git a/data/herbert_west_reanimator.rda b/data/herbert_west_reanimator.rda index 65f9e8d..f41bf25 100644 Binary files a/data/herbert_west_reanimator.rda and b/data/herbert_west_reanimator.rda differ diff --git a/data/hypnos.rda b/data/hypnos.rda index afe248d..2648b0b 100644 Binary files a/data/hypnos.rda and b/data/hypnos.rda differ diff --git a/data/imprisoned_with_the_pharoahs.rda b/data/imprisoned_with_the_pharoahs.rda index 6e92e60..0d89669 100644 Binary files a/data/imprisoned_with_the_pharoahs.rda and b/data/imprisoned_with_the_pharoahs.rda differ diff --git a/data/in_the_vault.rda b/data/in_the_vault.rda index 9e8db71..1a5257a 100644 Binary files a/data/in_the_vault.rda and b/data/in_the_vault.rda differ diff --git a/data/lovecraft.rda b/data/lovecraft.rda index ff2332f..c4d68a4 100644 Binary files a/data/lovecraft.rda and b/data/lovecraft.rda differ diff --git a/data/medusas_coil.rda b/data/medusas_coil.rda index 3e86673..700ae82 100644 Binary files a/data/medusas_coil.rda and b/data/medusas_coil.rda differ diff --git a/data/memory.rda b/data/memory.rda index 13b4aa1..9caf3d1 100644 Binary files a/data/memory.rda and b/data/memory.rda differ diff --git a/data/nyarlathotep.rda b/data/nyarlathotep.rda index ee55542..0118205 100644 Binary files a/data/nyarlathotep.rda and b/data/nyarlathotep.rda differ diff --git a/data/pickmans_model.rda b/data/pickmans_model.rda index 306cb3e..37c7368 100644 Binary files a/data/pickmans_model.rda and b/data/pickmans_model.rda differ diff --git a/data/poetry_of_the_gods.rda b/data/poetry_of_the_gods.rda index e0898f3..80d2a03 100644 Binary files a/data/poetry_of_the_gods.rda and b/data/poetry_of_the_gods.rda differ diff --git a/data/polaris.rda b/data/polaris.rda index 4939315..4e2ed4b 100644 Binary files a/data/polaris.rda and b/data/polaris.rda differ diff --git a/data/the_alchemist.rda b/data/the_alchemist.rda index c75f0a2..4456fd4 100644 Binary files a/data/the_alchemist.rda and b/data/the_alchemist.rda differ diff --git a/data/the_beast_in_the_cave.rda b/data/the_beast_in_the_cave.rda index 3933ccc..8a5398a 100644 Binary files a/data/the_beast_in_the_cave.rda and b/data/the_beast_in_the_cave.rda differ diff --git a/data/the_book.rda b/data/the_book.rda index 4d553c7..872e284 100644 Binary files a/data/the_book.rda and b/data/the_book.rda differ diff --git a/data/the_call_of_cthulhu.rda b/data/the_call_of_cthulhu.rda index bb76166..cfed0b7 100644 Binary files a/data/the_call_of_cthulhu.rda and b/data/the_call_of_cthulhu.rda differ diff --git a/data/the_case_of_charles_dexter_ward.rda b/data/the_case_of_charles_dexter_ward.rda index 3e997d9..9aebaaf 100644 Binary files a/data/the_case_of_charles_dexter_ward.rda and b/data/the_case_of_charles_dexter_ward.rda differ diff --git a/data/the_cats_of_ulthar.rda b/data/the_cats_of_ulthar.rda index e7d927d..8e86586 100644 Binary files a/data/the_cats_of_ulthar.rda and b/data/the_cats_of_ulthar.rda differ diff --git a/data/the_colour_out_of_space.rda b/data/the_colour_out_of_space.rda index d68e9f1..be10993 100644 Binary files a/data/the_colour_out_of_space.rda and b/data/the_colour_out_of_space.rda differ diff --git a/data/the_crawling_chaos.rda b/data/the_crawling_chaos.rda index 41afe90..1a7a094 100644 Binary files a/data/the_crawling_chaos.rda and b/data/the_crawling_chaos.rda differ diff --git a/data/the_descendent.rda b/data/the_descendent.rda index cf6cb52..b0286b4 100644 Binary files a/data/the_descendent.rda and b/data/the_descendent.rda differ diff --git a/data/the_doom_that_came_to_sarnath.rda b/data/the_doom_that_came_to_sarnath.rda index f60c660..5bc5fdc 100644 Binary files a/data/the_doom_that_came_to_sarnath.rda and b/data/the_doom_that_came_to_sarnath.rda differ diff --git a/data/the_dream_quest_of_unknown_kadath.rda b/data/the_dream_quest_of_unknown_kadath.rda index f1d03a4..8b5b7d1 100644 Binary files a/data/the_dream_quest_of_unknown_kadath.rda and b/data/the_dream_quest_of_unknown_kadath.rda differ diff --git a/data/the_dunwich_horror.rda b/data/the_dunwich_horror.rda index 482d3a9..3a1c634 100644 Binary files a/data/the_dunwich_horror.rda and b/data/the_dunwich_horror.rda differ diff --git a/data/the_evil_clergyman.rda b/data/the_evil_clergyman.rda index 865a64c..2a24b5b 100644 Binary files a/data/the_evil_clergyman.rda and b/data/the_evil_clergyman.rda differ diff --git a/data/the_festival.rda b/data/the_festival.rda index a3400c6..1324050 100644 Binary files a/data/the_festival.rda and b/data/the_festival.rda differ diff --git a/data/the_haunter_of_the_dark.rda b/data/the_haunter_of_the_dark.rda index 6db0561..9808019 100644 Binary files a/data/the_haunter_of_the_dark.rda and b/data/the_haunter_of_the_dark.rda differ diff --git a/data/the_horror_at_martins_beach.rda b/data/the_horror_at_martins_beach.rda index 1696755..f18002f 100644 Binary files a/data/the_horror_at_martins_beach.rda and b/data/the_horror_at_martins_beach.rda differ diff --git a/data/the_horror_at_redhook.rda b/data/the_horror_at_redhook.rda index 23f3a08..ac46cf4 100644 Binary files a/data/the_horror_at_redhook.rda and b/data/the_horror_at_redhook.rda differ diff --git a/data/the_hound.rda b/data/the_hound.rda index 911ea5a..e40452e 100644 Binary files a/data/the_hound.rda and b/data/the_hound.rda differ diff --git a/data/the_lurking_fear.rda b/data/the_lurking_fear.rda index aba9e00..aac04e3 100644 Binary files a/data/the_lurking_fear.rda and b/data/the_lurking_fear.rda differ diff --git a/data/the_moon_bog.rda b/data/the_moon_bog.rda index 4b82600..a8ff54f 100644 Binary files a/data/the_moon_bog.rda and b/data/the_moon_bog.rda differ diff --git a/data/the_music_of_erich_zann.rda b/data/the_music_of_erich_zann.rda index 6b8e207..da9b477 100644 Binary files a/data/the_music_of_erich_zann.rda and b/data/the_music_of_erich_zann.rda differ diff --git a/data/the_nameless_city.rda b/data/the_nameless_city.rda index 792ce5f..05b5477 100644 Binary files a/data/the_nameless_city.rda and b/data/the_nameless_city.rda differ diff --git a/data/the_other_gods.rda b/data/the_other_gods.rda index 5ba7fcd..2289da2 100644 Binary files a/data/the_other_gods.rda and b/data/the_other_gods.rda differ diff --git a/data/the_outsider.rda b/data/the_outsider.rda index 604644d..8b664c0 100644 Binary files a/data/the_outsider.rda and b/data/the_outsider.rda differ diff --git a/data/the_picture_in_the_house.rda b/data/the_picture_in_the_house.rda index 74e11ee..86aecf7 100644 Binary files a/data/the_picture_in_the_house.rda and b/data/the_picture_in_the_house.rda differ diff --git a/data/the_quest_of_iranon.rda b/data/the_quest_of_iranon.rda index d6ee4a0..6f451b6 100644 Binary files a/data/the_quest_of_iranon.rda and b/data/the_quest_of_iranon.rda differ diff --git a/data/the_rats_in_the_walls.rda b/data/the_rats_in_the_walls.rda index dcf21af..9819300 100644 Binary files a/data/the_rats_in_the_walls.rda and b/data/the_rats_in_the_walls.rda differ diff --git a/data/the_shadow_out_of_time.rda b/data/the_shadow_out_of_time.rda index 7fcca41..74e544a 100644 Binary files a/data/the_shadow_out_of_time.rda and b/data/the_shadow_out_of_time.rda differ diff --git a/data/the_shadow_over_innsmouth.rda b/data/the_shadow_over_innsmouth.rda index 27920da..0906aa0 100644 Binary files a/data/the_shadow_over_innsmouth.rda and b/data/the_shadow_over_innsmouth.rda differ diff --git a/data/the_shunned_house.rda b/data/the_shunned_house.rda index 3d2bffb..59a4d7f 100644 Binary files a/data/the_shunned_house.rda and b/data/the_shunned_house.rda differ diff --git a/data/the_silver_key.rda b/data/the_silver_key.rda index cb2ed1f..0b4eb6f 100644 Binary files a/data/the_silver_key.rda and b/data/the_silver_key.rda differ diff --git a/data/the_statement_of_randolph_carter.rda b/data/the_statement_of_randolph_carter.rda index 4a5400a..73ecc52 100644 Binary files a/data/the_statement_of_randolph_carter.rda and b/data/the_statement_of_randolph_carter.rda differ diff --git a/data/the_strange_high_house_in_the_mist.rda b/data/the_strange_high_house_in_the_mist.rda index 98ec219..b819240 100644 Binary files a/data/the_strange_high_house_in_the_mist.rda and b/data/the_strange_high_house_in_the_mist.rda differ diff --git a/data/the_street.rda b/data/the_street.rda index c661e3a..cd8e4af 100644 Binary files a/data/the_street.rda and b/data/the_street.rda differ diff --git a/data/the_temple.rda b/data/the_temple.rda index 87e4b20..625344a 100644 Binary files a/data/the_temple.rda and b/data/the_temple.rda differ diff --git a/data/the_terrible_old_man.rda b/data/the_terrible_old_man.rda index 1c332d6..3bd1efa 100644 Binary files a/data/the_terrible_old_man.rda and b/data/the_terrible_old_man.rda differ diff --git a/data/the_thing_on_the_doorstep.rda b/data/the_thing_on_the_doorstep.rda index 23a9b06..6fd3330 100644 Binary files a/data/the_thing_on_the_doorstep.rda and b/data/the_thing_on_the_doorstep.rda differ diff --git a/data/the_tomb.rda b/data/the_tomb.rda index 5c24b02..1fa9a97 100644 Binary files a/data/the_tomb.rda and b/data/the_tomb.rda differ diff --git a/data/the_transition_of_juan_romero.rda b/data/the_transition_of_juan_romero.rda index ba875cb..fa1b33c 100644 Binary files a/data/the_transition_of_juan_romero.rda and b/data/the_transition_of_juan_romero.rda differ diff --git a/data/the_tree.rda b/data/the_tree.rda index 729fc15..8535fa6 100644 Binary files a/data/the_tree.rda and b/data/the_tree.rda differ diff --git a/data/the_unnamable.rda b/data/the_unnamable.rda index 994ce2a..2faf38b 100644 Binary files a/data/the_unnamable.rda and b/data/the_unnamable.rda differ diff --git a/data/the_very_old_folk.rda b/data/the_very_old_folk.rda index 35badb4..1e5f470 100644 Binary files a/data/the_very_old_folk.rda and b/data/the_very_old_folk.rda differ diff --git a/data/the_whisperer_in_darkness.rda b/data/the_whisperer_in_darkness.rda index 7bbcf2c..108ef30 100644 Binary files a/data/the_whisperer_in_darkness.rda and b/data/the_whisperer_in_darkness.rda differ diff --git a/data/the_white_ship.rda b/data/the_white_ship.rda index 03f517b..36c7191 100644 Binary files a/data/the_white_ship.rda and b/data/the_white_ship.rda differ diff --git a/data/through_the_gates_of_the_silver_key.rda b/data/through_the_gates_of_the_silver_key.rda index c605a8d..e6cfebb 100644 Binary files a/data/through_the_gates_of_the_silver_key.rda and b/data/through_the_gates_of_the_silver_key.rda differ diff --git a/data/what_the_moon_brings.rda b/data/what_the_moon_brings.rda index 6ecf4ca..2d3c978 100644 Binary files a/data/what_the_moon_brings.rda and b/data/what_the_moon_brings.rda differ diff --git a/renv.lock b/renv.lock index 8510c58..dce7319 100644 --- a/renv.lock +++ b/renv.lock @@ -1,6 +1,6 @@ { "R": { - "Version": "4.2.2", + "Version": "4.4.1", "Repositories": [ { "Name": "CRAN",