Skip to content

climateBR

0.2.0Package record

Download Rainfall, Temperature, and Wind Data from Brazil

0packages depend
893downloads / year
–test coverage
11/13flavors OK

Overview

About

Provides functions to download and import meteorological data from Brazil's National Institute of Meteorology (INMET) https://portal.inmet.gov.br.

Changes in 0.2.0

This new release introduces a new function, revamps the existing datasets with cleaner and more concise versions, and, most importantly, fixes several bugs related to downloading data and building the INMET database.

New function

  • nearest_stations — helps users identify the distances between municipalities and INMET stations and determine which stations are closest to each municipality.

Datasets

  • inmet_stations — this dataset is essentially a revamped version of the previous rain_stations dataset. The older dataset contained information on INMET stations available from 2000 to 2024, meaning that the same station could appear multiple times across different years. The new version uses the most recent station information available through 2026 and contains one observation per station, avoiding unnecessary repetition.
  • mun_stations — the previous mun_stations_distance dataset contained the distances between municipalities and INMET stations for every two-year period from 2008 to 2024. This new version contains the distances calculated between municipalities and INMET stations using the inmet_stations dataset and the nearest_stations function.
  • municipality — a brand-new dataset containing basic information on Brazilian municipalities, including IBGE and TSE municipality codes, state, and the latitude and longitude of each municipality's centroid.
  • floods_rs — renamed the 'id_who' column to 'code_wmo'.

Bugfixes and Quality of Life

  • Blank CSV files from 2026 could cause the build_inmet_dataset process to fail. This bug has been fixed.
  • The data variable in the time series from later years were categorized differently, which could result in an inconsistent partitioned database when using build_inmet_dataset and cause errors when running read_inmet.
  • New parameters years and partitioning_by, have been added to build_inmet_dataset.
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0
  • Added a progress bar to the download_inmet() and build_inmet_dataset() functions.

From NEWS.md in the release

Install

Health

CRAN checks
2ERROR11OK
Check messages
ERRORre-building of vignette outputsr-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

r-devel-linux-x86_64-fedora-clang

Error(s) in re-building vignettes:
--- re-building ‘introduction.Rmd’ using rmarkdown
[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘introduction.Rmd’

--- re-building ‘kriging.Rmd’ using rmarkdown
trying URL 'https://github.com/kaiorb52/dados_municipais/raw/main/mun_24.rda'
Content type 'application/octet-stream' length 8238032 bytes (7.9 MB)
==================================================
downloaded 7.9 MB

OMP: Warning #96: Cannot form a team with 28 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
--- re-building ‘nearest_station.Rmd’ using rmarkdown
trying URL 'https://github.com/kaiorb52/dados_municipais/raw/main/mun_24.rda'
Content type 'application/octet-stream' length 8238032 bytes (7.9 MB)
==================================================
downloaded 7.9 MB

[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘nearest_station.Rmd’

SUMMARY: processing the following file failed:
  ‘kriging.Rmd’

Error: Vignette re-building failed.
Execution halted

r-devel-linux-x86_64-fedora-gcc

Error(s) in re-building vignettes:
--- re-building ‘introduction.Rmd’ using rmarkdown
[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘introduction.Rmd’

Warning: elapsed-time limit of 1 hours reached for sub-process
--- re-building ‘kriging.Rmd’ using rmarkdown
trying URL 'https://github.com/kaiorb52/dados_municipais/raw/main/mun_24.rda'
Content type 'application/octet-stream' length 8238032 bytes (7.9 MB)
==================================================
downloaded 7.9 MB

--- re-building ‘nearest_station.Rmd’ using rmarkdown
trying URL 'https://github.com/kaiorb52/dados_municipais/raw/main/mun_24.rda'
Content type 'application/octet-stream' length 8238032 bytes (7.9 MB)
==================================================
downloaded 7.9 MB

[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘nearest_station.Rmd’

SUMMARY: processing the following file failed:
  ‘kriging.Rmd’

Error: Vignette re-building failed.
Execution halted

CRAN check page ↗

Slowest check: 91.7 min · r-devel-linux-x86_64-fedora-clang
Status changes
  • ERROR11 OK, 2 ERRORNow
  • ERROR4 OK, 2 ERROR2026-08-08
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 217 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 0.2.0Citation fileNo
Help pages
11
Examples that run
64%7 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran) · 2 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

893
CRAN downloads in the past year
Rank #12,553 · ~2/day · ~74/mo
Daily download trend is not available in this view yet.
31930 days
89390 days
8931 year
Compare downloads with other packages →
Also on26 r2u15 autocran

Repository

5Stars
0Forks
0Open issues
0Open PRs
3Releases
63Commits
1Commit identities
63 commits · Last activity 2026-10-12 · +66.7% stars, 30d · Default branch at 0.2.5, ahead of CRAN 0.2.0 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
13
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-08-08 · 02026-09-28 · 5
PracticesBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/kaiorb52/climatebr on 2026-10-18.

Continuous integration (1)
GitHub Actions
Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-10-12 · The repository has a site deploy workflow

Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)

Installing climateBR adds 50 packages (32 with compiled code, 61 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, data.table 5.7 MB.

Depends (4)
R >= 4.1.0rlangsfgstat
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2026), Copyright holder
Releases (2)

Pick two releases to compare their code metrics.

  • 0.2.0Latest
    record
    2026-08-19 · current release · diff ↗ ·
    added 1 export
    nearest_stations
  • 0.1.0
    record
    2026-08-07
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-08-07
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
1.5 MB / 6 files
Download size
1.8 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("climateBR")
Bárbara, K. (2026). climateBR: Download Rainfall, Temperature, and Wind Data from Brazil (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.climateBR

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for climateBR version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy