Skip to content

Commit

Permalink
Merge pull request #46 from dieghernan/main
Browse files Browse the repository at this point in the history
Update DOI
  • Loading branch information
dieghernan authored Jun 19, 2024
2 parents 7c7a31b + 5971be8 commit b0da70e
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 24 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -30,7 +30,7 @@ preferred-citation:
email: [email protected]
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/
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -219,15 +219,15 @@ España.

<p>
H. Herrero D (2024). <em>tidyBdE: Download Data from Bank of Spain</em>.
<a href="https://doi.org/10.5281/zenodo.4673496">doi:10.5281/zenodo.4673496</a>,
<a href="https://doi.org/10.32614/CRAN.package.tidyBdE">doi:10.32614/CRAN.package.tidyBdE</a>,
<a href="https://ropenspain.github.io/tidyBdE/">https://ropenspain.github.io/tidyBdE/</a>.
</p>

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},
Expand Down
10 changes: 5 additions & 5 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -192,7 +192,7 @@
},
"applicationCategory": "Macroeconomics",
"isPartOf": "https://ropenspain.es/",
"fileSize": "289.506KB",
"fileSize": "289.6KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand All @@ -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",
Expand Down
11 changes: 6 additions & 5 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -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)
)
4 changes: 2 additions & 2 deletions inst/schemaorg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
15 changes: 9 additions & 6 deletions vignettes/tidyBdE.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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) %>%
Expand All @@ -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") %>%
Expand All @@ -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]) +
Expand Down Expand Up @@ -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") %>%
Expand Down Expand Up @@ -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")
```

Expand All @@ -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
Expand Down

0 comments on commit b0da70e

Please sign in to comment.