Skip to content

gspcr

Generalized Supervised Principal Component Regression

v0.9.5 · Nov 8, 2025 · MIT + file LICENSE

Description

Generalization of supervised principal component regression (SPCR; Bair et al., 2006, <doi:10.1198/016214505000000628>) to support continuous, binary, and discrete variables as outcomes and predictors (inspired by the 'superpc' R package <https://cran.r-project.org/package=superpc>).

Downloads

CRAN

348

Last 30 days

12677th

679

Last 90 days

2.3K

Last year

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

r2u CRAN

0

Last 30 days

32

Last 90 days

124

Last year

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

autoCRAN

4

Last 7 days

17

Last 30 days

1

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

package dependencies

Package required but not available: ‘FactoMineR’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

7,682

Files

111

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,343 (30.5%)Tests 2,688 (35%)Docs 1,111 (14.5%)Vignettes 1,540 (20%)

API

Exported functions

22

Internal functions

12

Recent export changes

v0.9.4+22 LL_baseline, LL_binomial, LL_cumulative +19 more

Testing & CI

Has tests

Yes

Test-to-code ratio

1.15

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

3

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

2.10

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2023-11-17

Latest release

2024-04-12

Avg cadence

74 days

Cold removal rate

Dep drift

0

LOC over versions

v0.9.4: 7,655 LOCv0.9.4.1: 7,672 LOCv0.9.5: 7,682 LOC

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

Dependency Network

Dependencies Reverse dependencies dplyr FactoMineR ggplot2 MASS MLmetrics nnet PCAmixdata reshape2 rlang gspcr

Version History

4 tracked
new 0.9.5 Mar 10, 2026
updated 0.9.5 ← 0.9.4.1 diff Nov 7, 2025
updated 0.9.4.1 ← 0.9.4 diff Nov 20, 2023
new 0.9.4 Nov 16, 2023