Conditioned Latin Hypercube Sampling
Overview
Conditioned Latin hypercube sampling, as published by Minasny and McBratney (2006) DOI:10.1016/j.cageo.2005.12.009. This method proposes to stratify sampling in presence of ancillary data. An extension of this method, which propose to associate a cost to each individual and take it into account during the optimisation process, is also proposed (Roudier et al., 2012, DOI:10.1201/b12728).
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: clhs/tests/testthat/test-raster.R (.Dim: 1, .Dimnames: 1) '.Dim' should be changed to 'dim'. '.Dimnames' should be changed to 'dimnames'.
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘CppLHS.Rd’ \arguments should not be documented without \usage.
- NOTE8 OK, 5 NOTENow
- NOTE12 OK, 1 NOTE2026-07-11
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 6includes a package overview page
- Examples that run
- 100%3 run in a plain check (1 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 50%
- intro-clhs HTML
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- 16
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commit identities over time
2 development-tooling and community-health practices detected across 1 family in the upstream repository
Checks run against github.com/pierreroudier/clhs on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
This repository has an AI review tool set up.
- Copilot code reviewCommits: some accepting its review suggestions, count not recorded
Dependencies
Installing clhs adds 35 packages (23 with compiled code, 50 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- unarchivedReturned to CRAN2020-04-15
- archivedRemoved from CRAN2020-04-09check problems were not corrected despite reminders
- unarchivedReturned to CRAN2019-05-07
- RR 3.6.0 released · 2019-04-26
- archivedRemoved from CRAN2019-04-22check errors were not corrected despite reminders
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
Show 21 earlier eventsHide 21 earlier events
- RR 3.1.0 released · 2014-04-10
- RR 3.0.0 released · 2013-04-03
- 2.15.2Latest
- 2.15.12012-06-06 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 2.14.2
- 0.9.22025-10-20 · diff ↗
- 0.9.02021-10-14 · diff ↗
- 0.8.12021-05-10 · diff ↗
- 0.7-32020-04-15 · diff ↗
- 0.7-22019-05-07 · diff ↗
- 0.7-02018-10-11 · diff ↗
- 0.6-0
- 0.5-72017-09-12 · diff ↗
- 0.5-62016-10-14 · diff ↗
- 0.5-52015-12-18 · diff ↗
- 0.5-42014-09-18 · diff ↗
- 0.5-12012-09-10 · diff ↗
- 0.5-02012-06-07 · diff ↗
- 0.4-32012-01-13
- RR 2.14.0 released · 2011-10-31
Package metadata
- First published
- 2012-01-12
- Total releases
- 17 / 14 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 2.14.0
- Download size
- 847 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("clhs")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1201/b12728-48.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.