Variable Selection Using Random Forests
Overview
Three steps variable selection procedure based on random forests. Initially developed to handle high dimensional data (for which number of variables largely exceeds number of observations), the package is very versatile and can treat most dimensions of data, for regression and supervised classification problems. First step is dedicated to eliminate irrelevant variables from the dataset. Second step aims to select all variables related to the response for interpretation purpose. Third step refines the selection by eliminating redundancy in the set of variables selected by the second step, for prediction purpose. Genuer, R. Poggi, J.-M. and Tuleau-Malot, C. (2015) https://journal.r-project.org/articles/RJ-2015-018/.
Install
Health
ERRORtestsr-release-macos-arm64
Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(VSURF)
>
> test_check("VSURF")
Saving _problems/test_orange-35.R
Saving _problems/test_orange-39.R
Saving _problems/test_orange-41.R
Saving _problems/test_orange-55.R
Saving _problems/test_orange-56.R
Saving _problems/test_orange-69.R
Saving _problems/test_orange-70.R
Saving _problems/test_orange-71.R
[ FAIL 8 | WARN 1 | SKIP 0 | PASS 25 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_orange.R:32:5'): Variable importance ─────────────────────────
Expected `orange.vsurf$imp.mean.dec` to equal `c(...)`.
Differences:
9/9 mismatches (average diff: 10.3)
[1] 2956.4 - 2954.5 == 1.96
[2] 201.3 - 216.3 == -14.95
[3] 101.2 - 75.1 == 26.08
[4] 13.9 - 19.9 == -6.06
[5] -13.2 - -24.7 == 11.55
[6] -29.6 - -32.0 == 2.37
[7] -29.9 - -39.0 == 9.13
[
...[truncated]...
erences:
3/3 mismatches (average diff: 2.08)
[1] 723 - 723 == -0.317
[2] 447 - 448 == -1.053
[3] 774 - 779 == -4.860
── Failure ('test_orange.R:56:5'): OOB erros of nested models ──────────────────
Expected `orange.vsurf$err.pred` to equal 721.4986.
Differences:
1/1 mismatches
[1] 721 - 721 == -0.483
── Failure ('test_orange.R:68:5'): Thresholds for the 3 steps ──────────────────
Expected `min(orange.vsurf$pred.pruned.tree)` to equal 42.413.
Differences:
1/1 mismatches
[1] 56 - 42.4 == 13.6
── Failure ('test_orange.R:70:5'): Thresholds for the 3 steps ──────────────────
Expected `orange.vsurf$sd.min` to equal 16.85953.
Differences:
1/1 mismatches
[1] 19 - 16.9 == 2.13
── Failure ('test_orange.R:71:5'): Thresholds for the 3 steps ──────────────────
Expected `orange.vsurf$mean.jump` to equal 331.2949.
Differences:
1/1 mismatches
[1] 327 - 331 == -3.81
[ FAIL 8 | WARN 1 | SKIP 0 | PASS 25 ]
Error:
! Test failures.
Execution halted- ERROR12 OK, 1 ERRORNow
- ERROR13 OK, 1 ERROR2026-03-10
Documentation
- Help pages
- 11
- Examples that run
- 50%5 run in a plain check · 5 never run
- Exported functions with examples
- 100%
- Documented parameters
- 20%
- Return-value docs
- 100%
- Help pages citing references
- 82%
Downloads
Repository
- PRs merged (all time)
- 0%
- Median days to close, 50 most recently updated closed issues
- 13
- Median days to close, 50 most recently updated closed PRs
- 133
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/robingenuer/vsurf on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing VSURF adds 4 packages (1 with compiled code, 621 KB of source tarballs). Heaviest: iterators 293 KB, doParallel 160 KB, foreach 88 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.1Latest
- RR 4.5.0 released · 2025-04-11
- 1.2.02024-07-16 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2023-01-23
- archivedRemoved from CRAN2022-08-08policy violation On Internet access
- unarchivedReturned to CRAN2022-06-10
- archivedRemoved from CRAN2022-05-07policy violation On Internet access
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.1.02019-07-18 · diff ↗
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
Show 18 earlier eventsHide 18 earlier events
- 1.0.42018-04-10 · diff ↗
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 1.0.32016-04-26 · diff ↗
- 1.0.22015-10-15 · diff ↗
- 1.0.12015-10-12 · diff ↗
- 1.0.02015-05-15 · diff ↗ ·
removed 26 exports
plot.VSURF, plot.VSURF.interp, plot.VSURF.pred, plot.VSURF.thres, print.VSURF, summary.VSURF, tune.VSURF.interp, tune.VSURF.thres, VSURF.default, VSURF.formula, VSURF.interp, VSURF.interp.parallel, VSURF.interp.parallel.default, VSURF.interp.parallel.formula, VSURF.parallel, VSURF.parallel.default, VSURF.parallel.formula, VSURF.pred, VSURF.pred.default, VSURF.pred.formula, VSURF.thres, VSURF.thres.default, VSURF.thres.formula, VSURF.thres.parallel, VSURF.thres.parallel.default, VSURF.thres.parallel.formulaadded 3 exports
VSURF_interp, VSURF_pred, VSURF_thres - RR 3.2.0 released · 2015-04-16
- 0.8.22014-05-12 · diff ↗ ·
added 28 exports
VSURF, VSURF.default, VSURF.formula, VSURF.interp, VSURF.interp.parallel, VSURF.interp.parallel.default, VSURF.interp.parallel.formula, VSURF.parallel, VSURF.parallel.default, VSURF.parallel.formula, VSURF.pred, VSURF.pred.default, VSURF.pred.formula, VSURF.thres, VSURF.thres.default, VSURF.thres.formula, VSURF.thres.parallel, VSURF.thres.parallel.default, VSURF.thres.parallel.formula, plot.VSURF, plot.VSURF.interp, plot.VSURF.pred, plot.VSURF.thres, print.VSURF, summary.VSURF, tune, tune.VSURF.interp, tune.VSURF.thres - RR 3.1.0 released · 2014-04-10
- 0.8.12014-02-05 · diff ↗
- 0.82013-12-18 · diff ↗ ·
removed 1 export
pattern:^[[:alpha:]]+added 28 exports
VSURF, VSURF.default, VSURF.formula, VSURF.interp, VSURF.interp.parallel, VSURF.interp.parallel.default, VSURF.interp.parallel.formula, VSURF.parallel, VSURF.parallel.default, VSURF.parallel.formula, VSURF.pred, VSURF.pred.default, VSURF.pred.formula, VSURF.thres, VSURF.thres.default, VSURF.thres.formula, VSURF.thres.parallel, VSURF.thres.parallel.default, VSURF.thres.parallel.formula, plot.VSURF, plot.VSURF.interp, plot.VSURF.pred, plot.VSURF.thres, print.VSURF, summary.VSURF, tune, tune.VSURF.interp, tune.VSURF.thres - 0.7.62013-11-13 · diff ↗
- 0.7.52013-10-07 · diff ↗
- 0.72013-09-10 · diff ↗ ·
removed 8 exports
VSURF, VSURF.interp, VSURF.interp.tune, VSURF.pred, VSURF.thres, VSURF.thres.tune, plot.VSURF, summary.VSURFadded 1 export
pattern:^[[:alpha:]]+ - 0.6
- 0.52013-05-28
- RR 3.0.0 released · 2013-04-03
Package metadata
- First published
- 2013-05-28
- Total releases
- 16 / 13 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.2.0
- Bundled data
- 302 KB / 7 files
- Download size
- 336 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("VSURF")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
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.