Skip to content

Commit 5f02b85

Browse files
committed
Atualiza README e adiciona CI/CD com GitHub Actions
1 parent 7ee3039 commit 5f02b85

File tree

7 files changed

+57
-64
lines changed

7 files changed

+57
-64
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
^appveyor\.yml$
66
^\.travis\.yml$
77
^cran-comments\.md$
8+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
name: R-CMD-check.yaml
9+
10+
permissions: read-all
11+
12+
jobs:
13+
R-CMD-check:
14+
runs-on: ubuntu-latest
15+
env:
16+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
17+
R_KEEP_PKG_SOURCE: yes
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: r-lib/actions/setup-r@v2
22+
with:
23+
use-public-rspm: true
24+
25+
- uses: r-lib/actions/setup-r-dependencies@v2
26+
with:
27+
extra-packages: any::rcmdcheck
28+
needs: check
29+
30+
- uses: r-lib/actions/check-r-package@v2
31+
with:
32+
upload-snapshots: true
33+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ library(deflateBR)
1919

2020
# deflateBR
2121

22-
[![AppVeyor Build
23-
Status](https://ci.appveyor.com/api/projects/status/github/meirelesff/deflateBR?branch=master&svg=true)](https://ci.appveyor.com/project/meirelesff/deflateBR)
24-
22+
<!-- badges: start -->
23+
[![R-CMD-check](https://github.com/meirelesff/deflateBR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/meirelesff/deflateBR/actions/workflows/R-CMD-check.yaml)
24+
<!-- badges: end -->
2525

2626
`deflateBR` is an `R` package used to deflate nominal Brazilian Reais using several popular price indexes.
2727

README.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
# deflateBR
44

5-
[![AppVeyor Build
6-
Status](https://ci.appveyor.com/api/projects/status/github/meirelesff/deflateBR?branch=master&svg=true)](https://ci.appveyor.com/project/meirelesff/deflateBR)
5+
<!-- badges: start -->
6+
7+
[![R-CMD-check](https://github.com/meirelesff/deflateBR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/meirelesff/deflateBR/actions/workflows/R-CMD-check.yaml)
8+
<!-- badges: end -->
79

810
`deflateBR` is an `R` package used to deflate nominal Brazilian Reais
911
using several popular price indexes.
@@ -25,9 +27,11 @@ library(deflateBR)
2527

2628
# Deflate January 2000 reais
2729
deflate(nominal_values = 100, nominal_dates = as.Date("2000-01-01"), real_date = "01/2018")
28-
#> Found valid cache for IPCA index (547 records)
29-
#> Loading IPCA data from cache...
30-
#> Loaded 547 records from cache (1979-12 to 2025-06)
30+
#> No cache found for IPCA index
31+
#> Cache not available, downloading from IPEA API...
32+
#> | | | 0% | |============= | 19% | |========================================= | 59% | |=========================================================== | 85% | |================================================================== | 94% | |======================================================================| 100%
33+
#> Saving IPCA data to cache...
34+
#> Cached 547 records for IPCA index
3135
#> [1] 310.3893
3236
```
3337

@@ -51,9 +55,11 @@ following options to the `index =` argument: `ipca`, `igpm`, `igpdi`,
5155
``` r
5256
# Deflate January 2000 reais using the INPC price index
5357
deflate(100, as.Date("2000-01-01"), "01/2018", index = "inpc")
54-
#> Found valid cache for INPC index (556 records)
55-
#> Loading INPC data from cache...
56-
#> Loaded 556 records from cache (1979-03 to 2025-06)
58+
#> No cache found for INPC index
59+
#> Cache not available, downloading from IPEA API...
60+
#> | | | 0% | |================================================= | 70% | |======================================================================| 100%
61+
#> Saving INPC data to cache...
62+
#> Cached 556 records for INPC index
5763
#> [1] 318.1845
5864
```
5965

@@ -116,9 +122,11 @@ reference <- "01/2018"
116122

117123
# Deflate using IGP-DI
118124
head(deflate(df$reais, df$dates, reference, "igpdi"))
119-
#> Found valid cache for IGPDI index (978 records)
120-
#> Loading IGPDI data from cache...
121-
#> Loaded 978 records from cache (1944-01 to 2025-06)
125+
#> No cache found for IGPDI index
126+
#> Cache not available, downloading from IPEA API...
127+
#> | | | 0% | |=============== | 21% | |================= | 24% | |===================== | 30% | |======================================= | 56% | |======================================================================| 100%
128+
#> Saving IGPDI data to cache...
129+
#> Cached 978 records for IGPDI index
122130
#> [1] 341.0412 342.7393 344.9315 345.5051 344.9379 346.6979
123131
```
124132

appveyor.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)