Skip to content

Commit

Permalink
Try to delete invalid downloaded files
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Sep 14, 2022
1 parent ac0911f commit e11011c
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@
^_pkgdown\.yaml$
^CITATION\.cff$
^CRAN-SUBMISSION$
^cache_tests$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ revdep
docs/
CRAN-SUBMISSION
.github/pkg.lock
cache_tests
6 changes: 4 additions & 2 deletions R/series.R
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,10 @@ bde_series_full_load <-
if (isFALSE(result)) {

# Clean up the file if it was produced. Is not valid
if (file.exists(local_file)) unlink(local_file, force = TRUE)

file_full_path <- path.expand(local_file)
if (file.exists(file_full_path)) {
unlink(file_full_path, force = TRUE, recursive = TRUE)
}
return(invisible())
}
} else {
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Alternatively, you can install the developing version of **tidyBdE**
using the [r-universe](https://ropenspain.r-universe.dev/ui#builds):

``` r

# Enable this universe
options(repos = c(
ropenspain = "https://ropenspain.r-universe.dev",
Expand All @@ -67,6 +68,7 @@ The basic entry point for searching time-series are the catalogs
(*indexes*) of information. You can search any series by name:

``` r

library(tidyBdE)

# Load tidyverse for better handling
Expand Down Expand Up @@ -96,6 +98,7 @@ exchange rate using the sequential number reference

``` r


seq_number <- XR_GBP %>%
# First record
slice(1) %>%
Expand All @@ -116,6 +119,7 @@ The package also provides a custom `ggplot2` theme based on the
publications of BdE:

``` r

ggplot(time_series, aes(x = Date, y = EUR_GBP_XR)) +
geom_line(colour = bde_vivid_pal()(1)) +
geom_smooth(method = "gam", colour = bde_vivid_pal()(2)[2]) +
Expand Down Expand Up @@ -144,6 +148,7 @@ of the most relevant macroeconomic series, so there is no need to look
for them in advance:

``` r

gdp <- bde_ind_gdp_var("values")
gdp$label <- "GDP YoY"

Expand Down Expand Up @@ -174,12 +179,14 @@ available.

``` r


scales::show_col(bde_rose_pal()(6))
```

<img src="man/figures/README-palettes-1.png" width="100%" />

``` r

scales::show_col(bde_vivid_pal()(6))
```

Expand Down
4 changes: 2 additions & 2 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.2.1 (2022-06-23 ucrt)",
"runtimePlatform": "R version 4.1.3 (2022-03-10)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -181,7 +181,7 @@
},
"applicationCategory": "Macroeconomics",
"isPartOf": "https://ropenspain.es/",
"fileSize": "772.504KB",
"fileSize": "760.805KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
Binary file modified man/figures/README-chart-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-macroseries-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-palettes-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-palettes-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/chart-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/macroseries-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e11011c

Please sign in to comment.