From c11738cf353b156648626406b6b7492ca300d8a7 Mon Sep 17 00:00:00 2001 From: "Diego H." Date: Wed, 19 Jun 2024 18:25:38 +0200 Subject: [PATCH 1/3] Add DOIs --- README.Rmd | 2 +- README.md | 2 +- inst/CITATION | 11 ++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.Rmd b/README.Rmd index 81c6dd17..bf55196a 100644 --- a/README.Rmd +++ b/README.Rmd @@ -32,7 +32,7 @@ knitr::opts_chunk$set( [![R-hub](https://github.com/rOpenSpain/tidyBdE/actions/workflows/rhub.yaml/badge.svg)](https://github.com/rOpenSpain/tidyBdE/actions/workflows/rhub.yaml) [![codecov](https://codecov.io/gh/ropenspain/tidyBdE/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ropenspain/tidyBdE) [![CodeFactor](https://www.codefactor.io/repository/github/ropenspain/tidybde/badge)](https://www.codefactor.io/repository/github/ropenspain/tidybde) -[![DOI](https://img.shields.io/badge/DOI-10.5281/zenodo.4673496-blue)](https://doi.org/10.5281/zenodo.4673496) +[![DOI](https://img.shields.io/badge/DOI-10.32614/CRAN.package.tidyBdE-blue)](https://doi.org/10.32614/CRAN.package.tidyBdE) [![Project Status: Active -- The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) diff --git a/README.md b/README.md index ee55bddf..621ddf04 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ [![R-hub](https://github.com/rOpenSpain/tidyBdE/actions/workflows/rhub.yaml/badge.svg)](https://github.com/rOpenSpain/tidyBdE/actions/workflows/rhub.yaml) [![codecov](https://codecov.io/gh/ropenspain/tidyBdE/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ropenspain/tidyBdE) [![CodeFactor](https://www.codefactor.io/repository/github/ropenspain/tidybde/badge)](https://www.codefactor.io/repository/github/ropenspain/tidybde) -[![DOI](https://img.shields.io/badge/DOI-10.5281/zenodo.4673496-blue)](https://doi.org/10.5281/zenodo.4673496) +[![DOI](https://img.shields.io/badge/DOI-10.32614/CRAN.package.tidyBdE-blue)](https://doi.org/10.32614/CRAN.package.tidyBdE) [![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) diff --git a/inst/CITATION b/inst/CITATION index bd00955a..4871185a 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -1,17 +1,18 @@ year <- format(Sys.time(), "%Y") abs <- trimws(gsub("\\s+", " ", meta$Description)) abs <- gsub("'", "", abs) -doi <- "10.5281/zenodo.4673496" +pkg <- meta$Package +doi <- paste0("10.32614/CRAN.package.", pkg) bibentry( "Manual", - header = paste0("To cite '", meta$Package, "' in publications use:"), - title = paste("{tidyBdE}:", gsub("'", "", meta$Title)), + header = paste0("To cite '", pkg, "' in publications use:"), + title = paste0("{", pkg, "}: ", gsub("'", "", meta$Title)), doi = doi, - author = person("Diego","H. Herrero"), + author = c(person("Diego", "H. Herrero")), year = year, version = meta$Version, url = unlist(strsplit(meta$URL, ","))[1], abstract = abs, - key = "R-tidyBdE" + key = paste0("R-", pkg) ) \ No newline at end of file From d0b03ead421ba6964dae9ad108366db943bdb7a7 Mon Sep 17 00:00:00 2001 From: dieghernan Date: Wed, 19 Jun 2024 16:30:23 +0000 Subject: [PATCH 2/3] Update CITATION.cff --- CITATION.cff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index a5505092..9dd5274a 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -9,7 +9,7 @@ type: software license: GPL-3.0-or-later title: 'tidyBdE: Download Data from Bank of Spain' version: 0.3.6 -doi: 10.5281/zenodo.4673496 +doi: 10.32614/CRAN.package.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 @@ -30,7 +30,7 @@ preferred-citation: email: dev.dieghernan@gmail.com orcid: https://orcid.org/0000-0001-8457-4658 affiliation: rOpenSpain - doi: 10.5281/zenodo.4673496 + doi: 10.32614/CRAN.package.tidyBdE year: '2024' version: 0.3.6 url: https://ropenspain.github.io/tidyBdE/ From 5971be8956ea100b9925981bc81e485babaab607 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 16:38:01 +0000 Subject: [PATCH 3/3] Update docs with pkgdev --- README.md | 4 ++-- codemeta.json | 10 +++++----- inst/schemaorg.json | 4 ++-- vignettes/tidyBdE.Rmd | 15 +++++++++------ 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 621ddf04..bfeafce0 100644 --- a/README.md +++ b/README.md @@ -219,7 +219,7 @@ España.

H. Herrero D (2024). tidyBdE: Download Data from Bank of Spain. -doi:10.5281/zenodo.4673496, +doi:10.32614/CRAN.package.tidyBdE, https://ropenspain.github.io/tidyBdE/.

@@ -227,7 +227,7 @@ A BibTeX entry for LaTeX users is @Manual{R-tidyBdE, title = {{tidyBdE}: Download Data from Bank of Spain}, - doi = {10.5281/zenodo.4673496}, + doi = {10.32614/CRAN.package.tidyBdE}, author = {Diego {H. Herrero}}, year = {2024}, version = {0.3.6}, diff --git a/codemeta.json b/codemeta.json index 56989068..573c14e3 100644 --- a/codemeta.json +++ b/codemeta.json @@ -14,7 +14,7 @@ "name": "R", "url": "https://r-project.org" }, - "runtimePlatform": "R version 4.4.0 (2024-04-24 ucrt)", + "runtimePlatform": "R version 4.4.1 (2024-06-14 ucrt)", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -192,7 +192,7 @@ }, "applicationCategory": "Macroeconomics", "isPartOf": "https://ropenspain.es/", - "fileSize": "289.506KB", + "fileSize": "289.6KB", "citation": [ { "@type": "SoftwareSourceCode", @@ -205,10 +205,10 @@ } ], "name": "{tidyBdE}: Download Data from Bank of Spain", - "identifier": "10.5281/zenodo.4673496", + "identifier": "10.32614/CRAN.package.tidyBdE", "url": "https://ropenspain.github.io/tidyBdE/", - "@id": "https://doi.org/10.5281/zenodo.4673496", - "sameAs": "https://doi.org/10.5281/zenodo.4673496" + "@id": "https://doi.org/10.32614/CRAN.package.tidyBdE", + "sameAs": "https://doi.org/10.32614/CRAN.package.tidyBdE" } ], "releaseNotes": "https://github.com/rOpenSpain/tidyBdE/blob/master/NEWS.md", diff --git a/inst/schemaorg.json b/inst/schemaorg.json index 96d60176..37794517 100644 --- a/inst/schemaorg.json +++ b/inst/schemaorg.json @@ -28,11 +28,11 @@ "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "runtimePlatform": "R version 4.4.0 (2024-04-24 ucrt)", + "runtimePlatform": "R version 4.4.1 (2024-06-14 ucrt)", "version": "0.3.6" }, { - "id": "https://doi.org/10.5281/zenodo.4673496", + "id": "https://doi.org/10.32614/CRAN.package.tidyBdE", "type": "SoftwareSourceCode", "author": { "type": "Person", diff --git a/vignettes/tidyBdE.Rmd b/vignettes/tidyBdE.Rmd index 45e62c73..0d1de65f 100644 --- a/vignettes/tidyBdE.Rmd +++ b/vignettes/tidyBdE.Rmd @@ -27,7 +27,7 @@ The basic entry point for searching time-series are the catalogs (*indexes*) of information. You can search any series by name: -```r +``` r library(tidyBdE) library(ggplot2) @@ -60,7 +60,7 @@ After we have found our series, we can load the series for the GBP/EUR exchange rate using the sequential number reference (`Numero_Secuencial`) as: -```r +``` r seq_number <- XR_GBP %>% # First record slice(1) %>% @@ -72,6 +72,9 @@ seq_number <- XR_GBP %>% seq_number #> [1] 573214 +``` + +``` r time_series <- bde_series_load(seq_number, series_label = "EUR_GBP_XR") %>% @@ -85,7 +88,7 @@ The package also provides a custom **ggplot2** theme based on the publications of BdE: -```r +``` r ggplot(time_series, aes(x = Date, y = EUR_GBP_XR)) + geom_line(colour = bde_tidy_palettes(n = 1)) + geom_smooth(method = "gam", colour = bde_tidy_palettes(n = 2)[2]) + @@ -117,7 +120,7 @@ most relevant macroeconomic series, so there is no need to look for them in advance: -```r +``` r # Data in "long" format plotseries <- bde_ind_gdp_var("GDP YoY", out_format = "long") %>% @@ -149,7 +152,7 @@ You can use **tidyBdE** to create your own local repository at a given local directory passing the following option: -```r +``` r options(bde_cache_dir = "./path/to/location") ``` @@ -160,7 +163,7 @@ It is possible to update the data (i.e. after every monthly or quarterly data release) with the following commands: -```r +``` r bde_catalog_update() # On most of the functions using the option update_cache = TRUE