From 461fc1a3f57681469effaa80ce4738b78fcbf3ce Mon Sep 17 00:00:00 2001 From: Diego H Date: Mon, 26 Aug 2024 15:39:30 +0200 Subject: [PATCH] Prepare CRAN release --- .github/workflows/recheck.yaml | 20 +++++++++ .github/workflows/revdepcheck.yaml | 67 +++++++++++++++++++++++++++++ CITATION.cff | 4 +- DESCRIPTION | 2 +- NEWS.md | 2 +- README.md | 2 +- codemeta.json | 4 +- inst/schemaorg.json | 2 +- revdep/README.md | 26 +++++------ vignettes/articles/Series_Index.Rmd | 7 --- 10 files changed, 108 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/recheck.yaml create mode 100644 .github/workflows/revdepcheck.yaml diff --git a/.github/workflows/recheck.yaml b/.github/workflows/recheck.yaml new file mode 100644 index 0000000..83497ed --- /dev/null +++ b/.github/workflows/recheck.yaml @@ -0,0 +1,20 @@ +# Workflow derived from https://github.com/r-devel/recheck +on: + workflow_dispatch: + inputs: + which: + type: choice + description: Which dependents to check + options: + - strong + - most + +name: r-devel reverse dependency check + +jobs: + revdep_check: + name: Reverse check ${{ inputs.which }} dependents + uses: r-devel/recheck/.github/workflows/recheck.yml@v1 + with: + which: ${{ inputs.which }} + diff --git a/.github/workflows/revdepcheck.yaml b/.github/workflows/revdepcheck.yaml new file mode 100644 index 0000000..b559d11 --- /dev/null +++ b/.github/workflows/revdepcheck.yaml @@ -0,0 +1,67 @@ +on: + workflow_dispatch: + +name: revdepcheck + +jobs: + revdepcheck: + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + + strategy: + fail-fast: false + matrix: + config: + - {os: ubuntu-latest, r: 'release'} + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v4 + + - uses: r-lib/actions/setup-pandoc@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + cache-version: revdep + extra-packages: | + local::. + any::usethis + any::BiocManager + any::BiocVersion + any::devtools + any::remotes + r-lib/revdepcheck + needs: check + + - name: revdepcheck + run: | + + revdepcheck::revdep_reset() + revdepcheck::revdep_check(num_workers = 4) + + + revdepig <- c( + "checks", "library", "checks.noindex", "library.noindex", + "data.sqlite", "*.html" ) + + usethis::use_git_ignore(revdepig, directory = file.path(".", "revdep")) + + # Ignore this also on build + usethis::use_build_ignore("revdep") + + shell: Rscript {0} + + - name: Commit results + run: | + git config --local user.name "github-actions[bot]" + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add -A + git commit -m 'revdepcheck' || echo "No changes to commit" + git push origin || echo "No changes to commit" + diff --git a/CITATION.cff b/CITATION.cff index 6996cd4..c978fcb 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -8,7 +8,7 @@ message: 'To cite package "tidyBdE" in publications use:' type: software license: GPL-3.0-or-later title: 'tidyBdE: Download Data from Bank of Spain' -version: 0.3.6.9000 +version: 0.3.7 doi: 10.32614/CRAN.package.tidyBdE identifiers: - type: doi @@ -35,7 +35,7 @@ preferred-citation: affiliation: rOpenSpain doi: 10.32614/CRAN.package.tidyBdE year: '2024' - version: 0.3.6.9000 + version: 0.3.7 url: https://ropenspain.github.io/tidyBdE/ abstract: Tools to download data series from Banco de España (BdE) on tibble format. Banco de España is the national central bank and, within the framework of the diff --git a/DESCRIPTION b/DESCRIPTION index 2509cfc..c77fc76 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: tidyBdE Title: Download Data from Bank of Spain -Version: 0.3.6.9000 +Version: 0.3.7 Authors@R: person("Diego", "H. Herrero", , "dev.dieghernan@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0001-8457-4658", affiliation = "rOpenSpain")) diff --git a/NEWS.md b/NEWS.md index 6f3dcd8..637bc15 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# tidyBdE (development version) +# tidyBdE 0.3.7 - Update `bde_ind_unemployment_rate()` and `bde_ind_population()` since the underlying identifier changed. diff --git a/README.md b/README.md index 1ec67e7..fe08045 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ A BibTeX entry for LaTeX users is doi = {10.32614/CRAN.package.tidyBdE}, author = {Diego {H. Herrero}}, year = {2024}, - version = {0.3.6.9000}, + version = {0.3.7}, url = {https://ropenspain.github.io/tidyBdE/}, abstract = {Tools to download data series from Banco de España (BdE) on tibble format. Banco de España is the national central bank and, within the framework of the Single Supervisory Mechanism (SSM), the supervisor of the Spanish banking system along with the European Central Bank. This package is in no way sponsored endorsed or administered by Banco de España.}, } diff --git a/codemeta.json b/codemeta.json index 864cf93..8c9eeea 100644 --- a/codemeta.json +++ b/codemeta.json @@ -8,7 +8,7 @@ "codeRepository": "https://github.com/rOpenSpain/tidyBdE", "issueTracker": "https://github.com/rOpenSpain/tidyBdE/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "0.3.6.9000", + "version": "0.3.7", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", @@ -192,7 +192,7 @@ }, "applicationCategory": "Macroeconomics", "isPartOf": "https://ropenspain.es/", - "fileSize": "288.961KB", + "fileSize": "288.496KB", "citation": [ { "@type": "SoftwareSourceCode", diff --git a/inst/schemaorg.json b/inst/schemaorg.json index 62a244d..4ef0e95 100644 --- a/inst/schemaorg.json +++ b/inst/schemaorg.json @@ -29,7 +29,7 @@ "url": "https://cran.r-project.org" }, "runtimePlatform": "R version 4.4.1 (2024-06-14 ucrt)", - "version": "0.3.6.9000" + "version": "0.3.7" }, { "id": "https://doi.org/10.32614/CRAN.package.tidyBdE", diff --git a/revdep/README.md b/revdep/README.md index 52fffc9..fbb9227 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -2,7 +2,7 @@ |field |value | |:--------|:----------------------------------------| -|version |R version 4.3.3 (2024-02-29 ucrt) | +|version |R version 4.4.1 (2024-06-14 ucrt) | |os |Windows 11 x64 (build 22631) | |system |x86_64, mingw32 | |ui |RStudio | @@ -10,29 +10,29 @@ |collate |Spanish_Spain.utf8 | |ctype |Spanish_Spain.utf8 | |tz |Europe/Madrid | -|date |2024-04-22 | -|rstudio |2023.12.1+402 Ocean Storm (desktop) | +|date |2024-08-26 | +|rstudio |2024.04.2+764 Chocolate Cosmos (desktop) | |pandoc |3.1.12.2 @ C:\PROGRA~1\Pandoc\pandoc.exe | # Dependencies |package |old |new |Δ | |:------------|:-----|:-----|:--| -|tidyBdE |0.3.5 |0.3.6 |* | +|tidyBdE |0.3.6 |0.3.7 |* | |bit |4.0.5 |4.0.5 | | |bit64 |4.0.5 |4.0.5 | | -|cli |3.6.2 |3.6.2 | | +|cli |3.6.3 |3.6.3 | | |clipr |0.8.0 |0.8.0 | | -|colorspace |2.1-0 |2.1-0 | | +|colorspace |2.1-1 |2.1-1 | | |cpp11 |0.4.7 |0.4.7 | | -|crayon |1.5.2 |1.5.2 | | +|crayon |1.5.3 |1.5.3 | | |dplyr |1.1.4 |1.1.4 | | |fansi |1.0.6 |1.0.6 | | -|farver |2.1.1 |2.1.1 | | +|farver |2.1.2 |2.1.2 | | |generics |0.1.3 |0.1.3 | | -|ggplot2 |3.5.0 |3.5.0 | | +|ggplot2 |3.5.1 |3.5.1 | | |glue |1.7.0 |1.7.0 | | -|gtable |0.3.4 |0.3.4 | | +|gtable |0.3.5 |0.3.5 | | |hms |1.1.3 |1.1.3 | | |isoband |0.2.7 |0.2.7 | | |labeling |0.4.3 |0.4.3 | | @@ -47,9 +47,9 @@ |R6 |2.5.1 |2.5.1 | | |RColorBrewer |1.1-3 |1.1-3 | | |readr |2.1.5 |2.1.5 | | -|rlang |1.1.3 |1.1.3 | | +|rlang |1.1.4 |1.1.4 | | |scales |1.3.0 |1.3.0 | | -|stringi |1.8.3 |1.8.3 | | +|stringi |1.8.4 |1.8.4 | | |stringr |1.5.1 |1.5.1 | | |tibble |3.2.1 |3.2.1 | | |tidyr |1.3.1 |1.3.1 | | @@ -59,7 +59,7 @@ |vctrs |0.6.5 |0.6.5 | | |viridisLite |0.4.2 |0.4.2 | | |vroom |1.6.5 |1.6.5 | | -|withr |3.0.0 |3.0.0 | | +|withr |3.0.1 |3.0.1 | | # Revdeps diff --git a/vignettes/articles/Series_Index.Rmd b/vignettes/articles/Series_Index.Rmd index 73f850a..61b212d 100644 --- a/vignettes/articles/Series_Index.Rmd +++ b/vignettes/articles/Series_Index.Rmd @@ -19,13 +19,6 @@ knitr::opts_chunk$set( The following table shows the series available on the catalog (Last update: **`r format(Sys.Date(),"%d-%B-%Y")`**). -```{r set_locale, warning=FALSE, comment=FALSE, include=FALSE} -# Set locale in Spanish so accents and special characters shows up -# This is useful with GHA if running on windows - -# Sys.setlocale(category = "LC_ALL", locale = "Spanish") -``` - Use the sequential number to load a single series (see [Example](#example) below):