Skip to content

soilKey

0.9.259Package record

Automated Soil Profile Classification per WRB 2022, 'SiBCS' 5 and USDA Soil Taxonomy 13

0packages depend
2.2Kdownloads / year
80.8%test coverage
13/13flavors OK

Overview

About

Implements deterministic classification keys for the World Reference Base for Soil Resources 2022 (4th edition) and the Brazilian System of Soil Classification ('SiBCS', 5th edition). Provides a unified profile representation with explicit per-attribute provenance, multimodal extraction from field reports and photos via vision-language models, spatial priors from 'SoilGrids' and national soil maps, and gap-filling of soil attributes from Vis-NIR or MIR spectra via the Open Soil Spectral Library ('OSSL'). The taxonomic key itself is never delegated to a language model; LLMs are restricted to schema-validated extraction. Each classification result reports a key trace, a provenance-aware evidence grade, and ambiguities that further measurement would resolve.

Changes in 0.9.259

Tests: the slow ones run off CRAN

The CRAN pre-test of 0.9.258 (2026-10-14) did not pass automatically on

r-devel-windows-x86_64: "Overall checktime 14 min > 10 min", mainly from the

tests, 461 s on Windows (158 s on Debian). The CRAN team asked to reduce the

test timings, among other ways by running less important tests only off CRAN.

Every test that took more than 0.03 s on CRAN's terms (NOT_CRAN unset, the

installed package) on a fast machine now starts with skip_on_cran(): 457

tests in 137 files. They run as before with devtools::test() and wherever

NOT_CRAN=true. The core of the three keys stays on CRAN, slow as it is:

the tests that the canonical profiles classify to their WRB Reference Soil

Group, to their SiBCS order, and to their USDA order.

| | before | now |

Show all changes in 0.9.259Hide the rest of the changes in 0.9.259

|---|---|---|

| tests run on CRAN | 1,821 | 1,354 |

| time of the tests on CRAN's terms, this machine | 87 s | 21 s |

| the same, the whole test process | 98 s | 28 s |

Windows ran the tests of 0.9.258 about five times slower than this machine;

by that ratio they take about 150 s there now.

The links to Embrapa's AgroAPI are text

The check of this version found the three addresses of Embrapa's AgroAPI

(www.agroapi.cnptia.embrapa.br) out of reach: the server did not answer in

60 s, and the incoming check waited for it. The addresses stay, written as

text and no longer as links: in the NEWS entry of 0.9.237, in the README, and

in inst/CITATION, where the entry of the SmartSolos Expert article loses its

url and keeps its DOI. As for the data servers in 0.9.155.

No code changes; the classification of every profile is the same.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 9.0 min · r-patched-linux-x86_64
Status changes
  • OK13 OK2026-10-17
  • WARNING12 OK, 1 WARNING2026-10-01
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-19
Show 4 earlier changesHide 4 earlier changes
  • WARNING12 OK, 1 WARNING2026-06-17
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK6 OK2026-05-20
Advisories

none known

Documentation

In release 0.9.259
READMEYes · 5,828 wordsVignettesYes · 13 · evaluation depends on the environmentNEWSYes · 67% structured · mentions 0.9.259Citation fileYes · cites a publicationWebsiteYes · pkgdown
Help pages
350 (18 internal)includes a package overview page
Examples that run
37%24 run in a plain check · 3 only when donttest examples are enabled (R CMD check --as-cran) · 38 never run
Exported functions with examples
19%
Documented parameters
99%
Return-value docs
98%
Help pages citing references
18%

Also includes 1 demo script (run with demo())

Downloads

2.2K
CRAN downloads in the past year
Rank #8,661 · ~6/day · ~180/mo
Daily download trend is not available in this view yet.
42230 days
1.1K90 days
2.2K1 year
Compare downloads with other packages →
Also on31 r2u7 autocran

Repository

3Stars
0Forks
0Open issues
0Open PRs
1Releases
64Commits
1Commit identities
64 commits · Last activity 2026-10-16 · -57.1% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-04-28 · 12026-09-30 · 3
PracticesBeta

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

Checks run against github.com/hugomachadorodrigues/soilkey on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (4)
Code of conductContributing guideIssue templatesPR template
Docs source (3)
pkgdown

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

pkgdown site last built 2026-10-11, before release 0.9.259 (2026-10-14)

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (2)
data-raw/Dockerfile
CRAN release process (1)
cran-comments.md
Research and citation (2)
CITATION.cffZenodo
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-04-25
    Named in .Rbuildignore: .claude
    Named in .gitignore: .claude
    Commits: some crediting it in the message, count not recorded
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
39 external dependencies (excludes base and recommended)

Installing soilKey adds 5 packages (4 with compiled code, 7.2 MB of source tarballs). Heaviest: data.table 5.7 MB, rlang 766 KB, cli 629 KB.

Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.9.97 (2026), Copyright holder
Releases (5)

Pick two releases to compare their code metrics.

  • 0.9.259Latest
    record
    2026-10-14 · current release · diff ↗ ·
    added 8 exports
    cohesic, cryic_horizon, folic, nitisol, read_wosis_layers_graphql, read_wosis_profiles_graphql, wosis_citation, wosis_profile_to_pedon
  • 0.9.184
    record
    2026-07-07 · diff ↗ ·
    added 4 exports
    apply_spectral_preprocessing, classify_csv, key_trace_table, read_pedon_csv
  • 0.9.157
    record
    2026-06-30 · diff ↗
  • 0.9.155
    record
    2026-06-22 · diff ↗ ·
    removed 592 exports
    acric_andisol_usda, acric_oxisol_usda, aeric_oxisol_usda, aeric_subgroup_usda, al_rich_spodic_usda, albaquult_qualifying_usda, albic_horizon_usda, albic_subgroup_usda, alboll_qualifying_usda, alfic_subgroup_usda, alfisol_qualifying_usda, alfisol_usda, alic_andisol_usda, andic_soil_properties_usda, andic_subgroup_usda, andisol_qualifying_usda, andisol_usda, anhydrous_conditions_usda, anionic_subgroup_usda, aqualf_qualifying_usda, aquand_qualifying_usda, aquandic_subgroup_usda, aquent_qualifying_usda, aquept_qualifying_usda, aquert_qualifying_usda, aquic_conditions_usda, aquic_subgroup_usda, aquoll_qualifying_usda, aquult_qualifying_usda, arenic_subgroup_usda and 562 more
    added 18 exports
    apply_soilgrids_depth_prior, benchmark_spectral_fill, build_taxon_profiles, classify_from_photos, classify_usda_family, classify_with_uncertainty, compute_per_attribute_evidence_grade, coverage_report, ensure_horizon_schema, gapfill_by_predicted_taxon, gapfill_derive_horizon, gapfill_within_pedon, get_perturbation_scale, horizon_column_spec, pedons_from_spectral_table, read_spectral_library, run_all_benchmarks, validate_horizon_geometry
  • 0.9.97
    record
    2026-05-19
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-05-19
Total releases
5 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1
Bundled data
1.1 MB / 1 file
Download size
5.9 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("soilKey")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

The repository also keeps a CITATION.cff.

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 soilKey version 0.9.259 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, 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