r-imfweo

Seamless Access to IMF World Economic Outlook (WEO) Data

https://github.com/teal-insights/r-imfweo

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.7%) to scientific vocabulary

Keywords

economic-data r
Last synced: 10 months ago · JSON representation

Repository

Seamless Access to IMF World Economic Outlook (WEO) Data

Basic Info
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 2
  • Releases: 1
Topics
economic-data r
Created over 1 year ago · Last pushed 11 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# imfweo



[![CRAN
status](https://www.r-pkg.org/badges/version/imfweo)](https://cran.r-project.org/package=imfweo)
[![CRAN
downloads](https://cranlogs.r-pkg.org/badges/imfweo)](https://cran.r-project.org/package=imfweo)
![R CMD
Check](https://github.com/teal-insights/r-imfweo/actions/workflows/R-CMD-check.yaml/badge.svg)
![Lint](https://github.com/teal-insights/r-imfweo/actions/workflows/lint.yaml/badge.svg)
[![Codecov test
coverage](https://codecov.io/gh/teal-insights/r-imfweo/graph/badge.svg)](https://app.codecov.io/gh/teal-insights/r-imfweo)
[![License:
MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)


`imfweo` is an R package to access and analyze the International Monetary Fund's World Economic Outlook (WEO) publications. WEO provides comprehensive analysis and forecasts of the global economy and is published twice a year - typically in April and October. 

The package is designed to work seamlessly with World Bank's International Debt Statistics (IDS) and World Development Indicators (WDI) provided through the [wbids](https://github.com/teal-insights/r-wbids) and [wbwdi](https://github.com/tidy-intelligence/r-wbwdi) package, respectively. It follows the principles of the [EconDataverse](https://www.econdataverse.org/).

This package is a product of Teal Insights and not sponsored by or affiliated with the IMF in any way, except for the use of the WEO data.

> :bulb: This package currently does not use the IMF Data API for several reasons: (i) the API’s SDMX format is complex and difficult to parse; (ii) leveraging the `rsdmx` package would require releasing `imfweo` under the GPL license; and (iii) it’s unclear whether the API provides access to historical WEO publications.

## Installation

You can install `imfweo` from [CRAN](https://CRAN.R-project.org/package=imfweo) via:

``` r
install.packages("imfweo")
```

You can install the development version of `imfweo` from [GitHub](https://github.com/teal-insights/r-imfweo) with:

``` r
# install.packages("pak")
pak::pak("teal-insights/r-imfweo")
```

## Usage

The main function `weo_get()` provides a simple interface to download data from the latest World Economic Outlook (WEO) publication:

```{r}
library(imfweo)

weo_get()
```

Note: On the first run of each R session, the function may take a few seconds to execute as the package checks which WEO publication is currently the latest. This information is put into a cache, which is reset whenever your session restarts. 

To explicitly retrieve the most recent publication metadata, use:

```{r}
weo_get_latest_publication()
```

To fetch data from a specific publication, or to filter by country, indicator, or time range, you can use the available parameters:

```{r}
weo_get(
  entities = c("USA", "GBR", "DEU"),
  series = "NGDP_RPCH",
  start_year = 2015,
  end_year = 2020,
  year = 2023,
  release = "Spring"
)
```

Even when filtering, the full dataset for the selected publication must be downloaded, as the WEO data is distributed in Excel format.

To explore available publications:

```{r}
weo_list_publications()
```

To list the available entities (countries or country groups) for the latest publication:

```{r}
weo_get_entities()
```

To list the available data series:

```{r}
weo_get_series()
```

## Contributing

Contributions to `imfweo` are welcome! If you'd like to contribute, please follow these steps:

1. **Create an issue**: Before making changes, create an issue describing the bug or feature you're addressing.
2. **Fork the repository**: After receiving supportive feedback from the package authors, fork the repository to your GitHub account.
3. **Create a branch**: Create a branch for your changes with a descriptive name.
4. **Make your changes**: Implement your bug fix or feature.
5. **Test your changes**: Run tests to ensure your changes don't break existing functionality.
6. **Submit a pull request**: Push your changes to your fork and submit a pull request to the main repository.

Owner

  • Name: Teal Insights
  • Login: Teal-Insights
  • Kind: organization

GitHub Events

Total
  • Create event: 4
  • Release event: 1
  • Issues event: 4
  • Watch event: 2
  • Delete event: 2
  • Issue comment event: 6
  • Push event: 21
  • Pull request event: 8
Last Year
  • Create event: 4
  • Release event: 1
  • Issues event: 4
  • Watch event: 2
  • Delete event: 2
  • Issue comment event: 6
  • Push event: 21
  • Pull request event: 8

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: imfweo

Seamless Access to IMF World Economic Outlook (WEO) Data

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 0 Last month
Rankings
Stargazers count: 24.9%
Dependent packages count: 25.7%
Forks count: 29.0%
Dependent repos count: 31.6%
Average: 39.3%
Downloads: 85.4%
Maintainers (1)
Last synced: 11 months ago

Dependencies

.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • cli * imports
  • dplyr * imports
  • httr2 * imports
  • readr * imports
  • readxl * imports
  • tidyr * imports
  • testthat >= 3.0.0 suggests