Skip to content

brclimr

Fetch Zonal Statistics of Weather Indicators for Brazilian Municipalities

v0.2.0 · Apr 4, 2024 · MIT + file LICENSE

Description

Fetches zonal statistics from weather indicators that were calculated for each municipality in Brazil using data from the BR-DWGD and TerraClimate projects. Zonal statistics such as mean, maximum, minimum, standard deviation, and sum were computed by taking into account the data cells that intersect the boundaries of each municipality and stored in Parquet files. This procedure was carried out for all Brazilian municipalities, and for all available dates, for every indicator available in the weather products (BR-DWGD and TerraClimate projects). This package queries on-line the already calculated statistics on the Parquet files and returns easy-to-use data.frames.

Downloads

CRAN

347

Last 30 days

12221st

827

Last 90 days

2.9K

Last year

Trend: +50.9% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

26

Last 90 days

111

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

3

Last 7 days

36

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 24, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 17, 2026
ERROR r-release-linux-x86_64

package dependencies

Package required but not available: ‘duckdb’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 15, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 13, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘duckdb’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

298

Files

29

Compiled share

0%

Has compiled src

No

Language breakdown

R 140 (47%)Tests 44 (14.8%)Docs 114 (38.3%)

API

Exported functions

3

Internal functions

0

Recent export changes

v0.1.1+1 %>%  −1 create_report
v0.1.0+3 create_report, fetch_data, product_info

Testing & CI

Has tests

Yes

Test-to-code ratio

0.31

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

50%

Roxygen coverage

66.7%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

2.10

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2023-03-07

Latest release

2024-04-04

Avg cadence

5 days

Cold removal rate

100%

Dep drift

15

LOC over versions

v0.1.0: 448 LOCv0.1.1: 299 LOCv0.1.2: 299 LOCv0.2.0: 298 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies checkmate rlang lobstr magrittr DBI duckdb glue brclimr

Version History

5 tracked
new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.2 diff Apr 3, 2024
updated 0.1.2 ← 0.1.1 diff Mar 13, 2023
updated 0.1.1 ← 0.1.0 diff Mar 11, 2023
new 0.1.0 Mar 6, 2023