diff --git a/CITATION.cff b/CITATION.cff index a550509..9dd5274 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/ diff --git a/README.Rmd b/README.Rmd index 81c6dd1..bf55196 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 ee55bdd..bfeafce 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) @@ -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 5698906..573c14e 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/CITATION b/inst/CITATION index bd00955..4871185 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 diff --git a/inst/schemaorg.json b/inst/schemaorg.json index 96d6017..3779451 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 45e62c7..0d1de65 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