Skip to content

retroharmonize

Ex Post Survey Data Harmonization

v0.2.8 · May 21, 2026 · GPL-3

Description

Assist in reproducible retrospective (ex-post) harmonization of data, particularly individual level survey data, by providing tools for organizing metadata, standardizing the coding of variables, and variable names and value labels, including missing values, and documenting the data transformations, with the help of comprehensive s3 classes.

Downloads

CRAN

537

Last 30 days

7141st

861

Last 90 days

926

Last year

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

r2u CRAN

0

Last 30 days

37

Last 90 days

180

Last year

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

autoCRAN

3

Last 7 days

14

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 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [20s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(retroharmonize)
  > 
  > test_check("retroharmonize")
  Saving ZA5913_subset.rds
  Saving
...[truncated]...
else(append, "a", "w"))`: cannot open the connection
  Backtrace:
      ▆
   1. └─utils::write.table(...)
   2.   └─base::file(file, ifelse(append, "a", "w"))
  
  [ FAIL 1 | WARN 7 | SKIP 5 | PASS 276 ]
  Error:
  ! Test failures.
  Execution halted
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 25, 2026
ERROR 3 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 21, 2026
ERROR r-release-macos-x86_64

package dependencies

Packages required but not available: 'dataset', 'labelled'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.

Code

Structure

Lines of code

13,756

Files

186

Compiled share

0%

Has compiled src

No

Language breakdown

R 5,939 (43.2%)Tests 3,358 (24.4%)Docs 2,696 (19.6%)Vignettes 1,763 (12.8%)

API

Exported functions

50

Internal functions

50

Recent export changes

v0.2.7+15 codebook_surveys_create, crosswalk, crosswalk_surveys +12 more  −3 metadata_waves_create, suggest_permanent_names, suggest_var_names
v0.2.0+4 codebook_waves_create, create_codebook, metadata_waves_create +1 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.56

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

93.9%

\dontrun example ratio

23.1%

Roxygen coverage

98%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

5%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

5

First release

2020-09-21

Latest release

2026-05-21

Avg cadence

204 days

Cold removal rate

100%

Dep drift

7

LOC over versions

v0.1.13: 5,446 LOCv0.1.17: 6,728 LOCv0.2.0: 7,655 LOCv0.2.7: 11,960 LOCv0.2.8: 13,756 LOC

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

Dependency Network

Dependencies Reverse dependencies assertthat cli dataset dplyr fs glue haven here labelled magrittr purrr rlang snakecase stringr tibble +3 more dependencies retroharmonize

Version History

5 tracked
new 0.2.8 May 21, 2026
update 0.2.7 ← 0.2.0 diff Jan 13, 2026
update 0.2.0 ← 0.1.17 diff Nov 1, 2021
update 0.1.17 ← 0.1.13 diff Jun 26, 2021
new 0.1.13 Sep 20, 2020