Skip to content

tikatuwq

Water Quality Assessment and Environmental Compliance in Brazil

v0.9.0 · Jun 9, 2026 · MIT + file LICENSE

Description

Tools to import, clean, validate, and analyze freshwater quality data in Brazil. Implements water quality indices including the Water Quality Index ('WQI'/'IQA') using the weighted geometric mean following 'CETESB' methodology, the Trophic State Index ('TSI'/'IET') after Carlson (1977) <doi:10.4319/lo.1977.22.2.0361> and Lamparelli (2004) <https://teses.usp.br/teses/disponiveis/41/41134/tde-20032006-075813/publico/TeseLamparelli2004.pdf>, and the National Sanitation Foundation Water Quality Index ('NSF WQI', Brown (1970)). The package also checks compliance with Brazilian standard 'CONAMA' Resolution 357/2005 <https://conama.mma.gov.br/?id=450&option=com_sisconama&task=arquivo.download> including the legal frequency rule (Art. 15, 80% conformity over six or more samples per year), and provides seasonal analysis with regional flow-season calendars, pollutant load computation, exceedance probability estimation, 'IET' visualization, and multivariate 'PCA' tools for routine monitoring workflows. The example dataset ('wq_demo') is a real subset from 'INEMA' monitoring data from a river in Bahia, Brazil (2020-2024).

Downloads

CRAN

286

Last 30 days

16637th

585

Last 90 days

2.4K

Last year

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

r2u CRAN

3

Last 30 days

22

Last 90 days

108

Last year

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

autoCRAN

5

Last 7 days

13

Last 30 days

0

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 Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether package can be installed

install log ‘’ does not exist
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

9,889

Files

134

Compiled share

0%

Has compiled src

No

Language breakdown

R 5,352 (54.1%)Tests 1,247 (12.6%)Docs 2,548 (25.8%)Vignettes 742 (7.5%)

API

Exported functions

42

Internal functions

26

Recent export changes

v0.9.0+10 assign_season, balnear_check, compare_seasons +7 more
v0.8.0+4 classify_iqa, classify_tsi_carlson, classify_tsi_lamparelli +1 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.23

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

54.8%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

50%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

8

First release

2025-09-22

Latest release

2026-06-09

Avg cadence

15 days

Cold removal rate

Dep drift

3

LOC over versions

v0.4.6: 1,834 LOCv0.5.1: 3,326 LOCv0.6.2: 3,838 LOCv0.7.2: 4,800 LOCv0.7.3: 4,877 LOCv0.8.0: 6,780 LOCv0.8.2: 6,833 LOCv0.9.0: 9,889 LOC

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

Dependency Network

Dependencies Reverse dependencies dplyr readr tibble rlang ggplot2 tidyr lubridate stringr glue scales broom purrr tikatuwq

Version History

9 tracked
updated 0.9.0 ← 0.8.2 diff Jun 9, 2026
new 0.8.2 Mar 10, 2026
updated 0.8.2 ← 0.8.0 diff Jan 15, 2026
updated 0.8.0 ← 0.7.3 diff Nov 16, 2025
updated 0.7.3 ← 0.7.2 diff Oct 30, 2025
updated 0.7.2 ← 0.6.2 diff Oct 21, 2025
updated 0.6.2 ← 0.5.1 diff Oct 7, 2025
updated 0.5.1 ← 0.4.6 diff Sep 30, 2025
new 0.4.6 Sep 21, 2025