Skip to content

s2net

The Generalized Semi-Supervised Elastic-Net

v1.0.7 · Mar 31, 2024 · GPL (>= 2)

Description

Implements the generalized semi-supervised elastic-net. This method extends the supervised elastic-net problem, and thus it is a practical solution to the problem of feature selection in semi-supervised contexts. Its mathematical formulation is presented from a general perspective, covering a wide range of models. We focus on linear and logistic responses, but the implementation could be easily extended to other losses in generalized linear models. We develop a flexible and fast implementation, written in 'C++' using 'RcppArmadillo' and integrated into R via 'Rcpp' modules. See Culp, M. 2013 <doi:10.1080/10618600.2012.657139> for references on the Joint Trained Elastic-Net.

Downloads

CRAN

307

Last 30 days

15016th

636

Last 90 days

2.6K

Last year

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

r2u CRAN

24

Last 30 days

114

Last 90 days

384

Last year

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

autoCRAN

5

Last 7 days

15

Last 30 days

2

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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/s2net.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code intelligence has not been computed for this package yet.

Code

Structure

Lines of code

2,128

Files

46

Compiled share

30.2%

Has compiled src

Yes

Language breakdown

R 422 (19.8%)C/C++/src 642 (30.2%)Tests 28 (1.3%)Docs 934 (43.9%)Vignettes 102 (4.8%)

API

Exported functions

0

Internal functions

13

Recent export changes

v1.0+1 pattern:s2net, s2Data, s2Params, s2Fista, s2netR, simulate_extra, simulate_groups

Testing & CI

Has tests

Yes

Test-to-code ratio

0.07

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

\dontrun example ratio

0%

Roxygen coverage

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2020-01-13

Latest release

2024-03-31

Avg cadence

640 days

Cold removal rate

Dep drift

0

LOC over versions

v1.0: 2,122 LOCv1.0.1: 2,122 LOCv1.0.4: 2,127 LOCv1.0.7: 2,128 LOC

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

Dependency Network

Dependencies Reverse dependencies Rcpp MASS s2net

Version History

5 tracked
new 1.0.7 Mar 10, 2026
updated 1.0.7 ← 1.0.4 diff Mar 30, 2024
updated 1.0.4 ← 1.0.1 diff Jun 29, 2022
updated 1.0.1 ← 1.0 diff Jan 15, 2020
new 1.0 Jan 12, 2020