Skip to content

Commit

Permalink
Fix use of internet resource (API) CRAN policy
Browse files Browse the repository at this point in the history
  • Loading branch information
schoulten committed Jul 20, 2021
1 parent 67ae331 commit ced6e5e
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CRAN-RELEASE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This package was submitted to CRAN on 2021-07-19.
Once it is accepted, delete this file and tag the release (commit cafc031).
Once it is accepted, delete this file and tag the release (commit 67ae331).
1 change: 1 addition & 0 deletions R/get_annual.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#' @examples
#' df <- get_annual(
#' indicator = "IPCA",
#' first_date = Sys.Date() - 30,
#' reference_date = format(Sys.Date(), "%Y"),
#' use_memoise = FALSE
#' )
Expand Down
1 change: 1 addition & 0 deletions R/get_annual_top5.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#' @examples
#' df <- get_annual_top5(
#' indicator = "IPCA",
#' first_date = Sys.Date() - 30,
#' reference_date = format(Sys.Date(), "%Y"),
#' use_memoise = FALSE
#' )
Expand Down
1 change: 1 addition & 0 deletions R/get_inflation_12m.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#' @examples
#' df <- get_inflation_12m(
#' indicator = "IPCA",
#' first_date = Sys.Date() - 30,
#' smoothed = "yes",
#' use_memoise = FALSE
#' )
Expand Down
1 change: 1 addition & 0 deletions R/get_monthly.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#' @examples
#' df <- get_monthly(
#' indicator = "IPCA",
#' first_date = Sys.Date() - 30,
#' reference_date = format(Sys.Date(), "%m/%Y"),
#' use_memoise = FALSE
#' )
Expand Down
1 change: 1 addition & 0 deletions R/get_monthly_top5.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#' @examples
#' df <- get_monthly_top5(
#' indicator = "IPCA",
#' first_date = Sys.Date() - 30,
#' reference_date = format(Sys.Date(), "%m/%Y"),
#' use_memoise = FALSE
#' )
Expand Down
1 change: 1 addition & 0 deletions R/get_quarterly.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#' @examples
#' df <- get_quarterly(
#' indicator = "PIB Total",
#' first_date = Sys.Date() - 30,
#' reference_date = paste0(lubridate::quarter(Sys.Date()), "/",
#' lubridate::year(Sys.Date())
#' ),
Expand Down
3 changes: 1 addition & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ knitr::opts_chunk$set(
[![CRAN downloads](http://cranlogs.r-pkg.org/badges/grand-total/meedr?color=green)](https://cran.r-project.org/package=meedr)
<!-- badges: end -->

The goal of **meedr** is to provide quick and easy access to market expectations data to the main macroeconomic indicators in the Focus report, made available by the **Central Bank of Brazil** through the Expectations System data [API](https://olinda.bcb.gov.br/olinda/servico/Expectativas/versao/v1/aplicacao#!/recursos). This data comes from several financial institutions, such as: banks, brokers, funds, consultancies, etc.
The goal of **meedr** is to provide quick and easy access to market expectations data to the main macroeconomic indicators in the Focus report, made available by the **Central Bank of Brazil** through the Expectations System data [API](https://dadosabertos.bcb.gov.br/). This data comes from several financial institutions, such as: banks, brokers, funds, consultancies, etc.

The **meedr** package offers an R interface to the API and other advantages:

Expand Down Expand Up @@ -67,7 +67,6 @@ These are some basic examples of using the package:

```{r, message=FALSE, warning=FALSE}
library(meedr)
library(dplyr)
# Monthly market expectations for IPCA indicator
ipca <- meedr::get_monthly(
Expand Down
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ downloads](http://cranlogs.r-pkg.org/badges/grand-total/meedr?color=green)](http
The goal of **meedr** is to provide quick and easy access to market
expectations data to the main macroeconomic indicators in the Focus
report, made available by the **Central Bank of Brazil** through the
Expectations System data
[API](https://olinda.bcb.gov.br/olinda/servico/Expectativas/versao/v1/aplicacao#!/recursos).
This data comes from several financial institutions, such as: banks,
brokers, funds, consultancies, etc.
Expectations System data [API](https://dadosabertos.bcb.gov.br/). This
data comes from several financial institutions, such as: banks, brokers,
funds, consultancies, etc.

The **meedr** package offers an R interface to the API and other
advantages:
Expand Down Expand Up @@ -74,7 +73,6 @@ These are some basic examples of using the package:

``` r
library(meedr)
library(dplyr)

# Monthly market expectations for IPCA indicator
ipca <- meedr::get_monthly(
Expand All @@ -88,11 +86,11 @@ head(ipca, 5)
#> # A tibble: 5 x 11
#> indicator date reference_date mean median sd coef_var min max
#> <chr> <date> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 IPCA 2021-04-23 04/2021 0.39 0.38 0.1 25.6 0.18 0.74
#> 2 IPCA 2021-04-23 04/2021 0.38 0.35 0.09 23.7 0.18 0.74
#> 3 IPCA 2021-04-22 04/2021 0.42 0.41 0.11 26.2 0.2 0.74
#> 4 IPCA 2021-04-22 04/2021 0.42 0.4 0.1 23.8 0.24 0.74
#> 5 IPCA 2021-04-20 04/2021 0.42 0.42 0.11 26.2 0.2 0.74
#> 1 IPCA 2021-07-16 07/2021 0.66 0.71 0.17 26.3 0.13 0.94
#> 2 IPCA 2021-07-16 07/2021 0.72 0.77 0.15 20.3 0.13 0.93
#> 3 IPCA 2021-07-15 07/2021 0.65 0.7 0.18 27.5 0.13 0.94
#> 4 IPCA 2021-07-15 07/2021 0.72 0.77 0.15 21.2 0.13 0.94
#> 5 IPCA 2021-07-14 07/2021 0.64 0.68 0.18 28.4 0.13 0.94
#> # ... with 2 more variables: n_respondents <int>, basis <int>
```

Expand Down
1 change: 1 addition & 0 deletions man/get_annual.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/get_annual_top5.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/get_inflation_12m.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/get_monthly.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/get_monthly_top5.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/get_quarterly.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ced6e5e

Please sign in to comment.