{
  "_id": "6a5178e49b92047c28d50a34",
  "Package": "spca",
  "Type": "Package",
  "Title": "Least Squares Sparse Principal Components Analysis",
  "Version": "1.1.1",
  "Date": "2026-06-03",
  "Authors@R": "person(given = \"Giovanni Maria\", family = \"Merola\", email = \"merolagio@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Implements least-squares sparse principal component\nanalysis (LS-SPCA). The approach follows Merola (2015)\n<doi:10.1111/anzs.12128> and Merola and Chen (2019)\n<doi:10.1016/j.jmva.2019.04.001>.",
  "Maintainer": "Giovanni Maria Merola <merolagio@gmail.com>",
  "URL": "https://github.com/merolagio/spca",
  "BugReports": "https://github.com/merolagio/spca/issues",
  "License": "AGPL-3",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-10 22:50:09 UTC",
    "User": "root"
  },
  "Author": "Giovanni Maria Merola [aut, cre]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-07-10 20:10:02 UTC",
  "RemoteUrl": "https://github.com/cran/spca",
  "RemoteRef": "HEAD",
  "RemoteSha": "3e62b86e74f59210aa2b1100715310940d38c2ba",
  "_user": "cran",
  "_type": "src",
  "_file": "spca_1.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/c8d2f7b8d5f3a3939b0989a397552396d4d7fd6f19ddb69824b31ddc80c8f427",
  "_filesize": 4756017,
  "_sha256": "c8d2f7b8d5f3a3939b0989a397552396d4d7fd6f19ddb69824b31ddc80c8f427",
  "_expires": "2026-10-18T22:57:38.000Z",
  "_created": "2026-07-10T22:50:09.000Z",
  "_published": "2026-07-10T22:57:39.935Z",
  "_jobs": [
    {
      "job": 86480193057,
      "time": 288,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8241382535"
    },
    {
      "job": 86480193109,
      "time": 313,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8241387528"
    },
    {
      "job": 86480193101,
      "time": 276,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8241379912"
    },
    {
      "job": 86480193099,
      "time": 283,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8241380649"
    },
    {
      "job": 86479291322,
      "time": 420,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8241308410"
    },
    {
      "job": 86480193040,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/29128565788",
  "_status": "success",
  "_upstream": "https://github.com/cran/spca",
  "_commit": {
    "id": "3e62b86e74f59210aa2b1100715310940d38c2ba",
    "author": "Giovanni Maria Merola <merolagio@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.1.1\n",
    "time": 1783714202
  },
  "_maintainer": {
    "name": "Giovanni Maria Merola",
    "email": "merolagio@gmail.com",
    "login": "merolagio",
    "description": "",
    "uuid": 9781309
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.3",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.14",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 4.0.0",
      "role": "Imports"
    },
    {
      "package": "RMTstat",
      "version": ">= 0.3.1",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "peakRAM",
      "version": ">= 1.0.2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "bench",
      "role": "Suggests"
    },
    {
      "package": "R.rsp",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-28",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.1.1",
      "date": "2026-07-10"
    }
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "merolagio",
      "count": 2,
      "uuid": 9781309
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 617,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/spca"
  },
  "_devurl": "https://github.com/merolagio/spca",
  "_searchresults": 23,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/spca.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.6.0",
      "date": "2014-12-16"
    },
    {
      "version": "1.1.1",
      "date": "2026-07-10"
    }
  ],
  "_exports": [
    "aggregate_by_group",
    "change_loadings_sign_spca",
    "compare_spca",
    "is.spca",
    "new_spca",
    "pca",
    "show_contributions_spca",
    "spca",
    "spca_screeplot",
    "wachter_qqplot"
  ],
  "_datasets": [
    {
      "name": "holzinger",
      "title": "Holzinger-Swineford Student Ability data",
      "object": "holzinger",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "visual",
        "cubes",
        "flags",
        "paragraph",
        "sentence",
        "wordm",
        "addition",
        "counting",
        "straight",
        "deduct",
        "numeric",
        "series"
      ],
      "rows": 145,
      "table": true,
      "tojson": true
    },
    {
      "name": "holzinger_scales",
      "title": "Holzinger-Swineford Student Ability scales",
      "object": "holzinger_scales",
      "class": [
        "factor"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "spca-package",
      "title": "Least Squares Sparse Principal Components Analysis",
      "topics": [
        "spca-package"
      ]
    },
    {
      "page": "aggregate_by_group",
      "title": "Aggregate loadings or contributions by group",
      "topics": [
        "aggregate_by_group"
      ]
    },
    {
      "page": "change_loadings_sign_spca",
      "title": "Change the sign of selected loadings in an spca object",
      "concept": [
        "spca"
      ],
      "topics": [
        "change_loadings_sign_spca"
      ]
    },
    {
      "page": "compare_spca",
      "title": "Compare two or more spca solutions",
      "concept": [
        "spca"
      ],
      "topics": [
        "compare_spca"
      ]
    },
    {
      "page": "holzinger",
      "title": "Holzinger-Swineford Student Ability data",
      "topics": [
        "holzinger"
      ]
    },
    {
      "page": "holzinger_scales",
      "title": "Holzinger-Swineford Student Ability scales",
      "topics": [
        "holzinger_scales"
      ]
    },
    {
      "page": "is.spca",
      "title": "Test for spca objects",
      "concept": [
        "spca"
      ],
      "topics": [
        "is.spca"
      ]
    },
    {
      "page": "new_spca",
      "title": "Construct an spca object from a set of loadings",
      "concept": [
        "spca"
      ],
      "topics": [
        "new_spca"
      ]
    },
    {
      "page": "pca",
      "title": "Compute principal components",
      "concept": [
        "pca"
      ],
      "topics": [
        "pca"
      ]
    },
    {
      "page": "plot.spca",
      "title": "Plot an spca object",
      "concept": [
        "spca"
      ],
      "topics": [
        "plot.spca"
      ]
    },
    {
      "page": "print.spca",
      "title": "Print an spca object",
      "concept": [
        "spca"
      ],
      "topics": [
        "print.spca"
      ]
    },
    {
      "page": "show_contributions_spca",
      "title": "Show nonzero contributions by component",
      "concept": [
        "spca"
      ],
      "topics": [
        "show_contributions_spca"
      ]
    },
    {
      "page": "spca",
      "title": "Compute LS-SPCA components",
      "concept": [
        "spca"
      ],
      "topics": [
        "spca"
      ]
    },
    {
      "page": "spca_object",
      "title": "Sparse principal component analysis object",
      "concept": [
        "spca"
      ],
      "topics": [
        "spca_object"
      ]
    },
    {
      "page": "spca_screeplot",
      "title": "Plot eigenvalues in a scree plot",
      "concept": [
        "pca"
      ],
      "topics": [
        "spca_screeplot"
      ]
    },
    {
      "page": "summary.spca",
      "title": "Summarize an spca object",
      "concept": [
        "spca"
      ],
      "topics": [
        "summary.spca"
      ]
    },
    {
      "page": "wachter_qqplot",
      "title": "Wachter QQ plot for eigenvalues",
      "concept": [
        "pca"
      ],
      "topics": [
        "wachter_qqplot"
      ]
    }
  ],
  "_readme": "https://github.com/cran/spca/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "RMTstat",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "spca_extended_vignette.Rmd",
      "filename": "spca_extended_vignette.html",
      "title": "Computing Least Squares Sparse Principal Components with spca",
      "engine": "knitr::rmarkdown",
      "headings": [
        "title: \"Computing Least Squares Sparse Principal Components with the spca Package\"author: \"Giovanni Maria Merola\"date: \"r Sys.Date()\"output: rmarkdown::html_vignettevignette: >%\\VignetteIndexEntry{Computing Least Squares Sparse Principal Components with spca}%\\VignetteEngine{knitr::rmarkdown}%\\VignetteEncoding{UTF-8}%\\VignetteDepends{spca}knit: (function(input, ...) rmarkdown::render(input, output_dir = dirname(normalizePath(input)), ...))",
        "Introduction",
        "LS-SPCA in brief",
        "The spca package",
        "Application",
        "pca()",
        "spca()",
        "print()",
        "summary()",
        "plot()",
        "Fixed indices",
        "Compare solutions",
        "Variable groups",
        "Create an spca object",
        "Comparison of LS-SPCA variants",
        "Computation methods",
        "Variable selection methods",
        "alpha",
        "Comparison with conventional SPCA",
        "Tall matrices",
        "Fat matrices",
        "References"
      ],
      "created": "2026-07-10 20:10:02",
      "modified": "2026-07-10 20:10:02",
      "commits": 1
    },
    {
      "source": "spca_intro.Rmd",
      "filename": "spca_intro.html",
      "title": "Introduction to the spca package",
      "author": "giovanni Maria Merola",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation",
        "Usage",
        "Example",
        "Load data",
        "Preliminary PCA",
        "Compute the sparse loadings",
        "Inspect spca results",
        "Variable groups",
        "Comparison of two or more spca solutions"
      ],
      "created": "2026-07-10 20:10:02",
      "modified": "2026-07-10 20:10:02",
      "commits": 1
    }
  ],
  "_score": 3.6627578316815743,
  "_indexed": true,
  "_nocasepkg": "spca",
  "_universes": [
    "cran",
    "merolagio"
  ],
  "_previous": "0.6.0",
  "_binaries": [
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.0",
      "date": "2026-07-10T21:52:06.000Z",
      "commit": "941bf4699be60cb1cdda49507761e9d0736360c6",
      "fileid": "https://r2.ropensci.org/ecd3e8d1ce50b4754e4daaf5feebc3a83d467885e8f5f6449e16dc5bcc3d3e46",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29125763880"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-07-10T22:55:00.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3e62b86e74f59210aa2b1100715310940d38c2ba",
      "fileid": "https://r2.ropensci.org/437ab4a82f7fb9ae1e574421e89960328bdd056ba85d5228127bdc81654409b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29128565788"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-07-10T22:54:49.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3e62b86e74f59210aa2b1100715310940d38c2ba",
      "fileid": "https://r2.ropensci.org/b3d4294e843cbdb7aee3fed5248d6f309fb07d5488d7edcde28ecca1bc73845b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29128565788"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-07-10T22:54:53.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3e62b86e74f59210aa2b1100715310940d38c2ba",
      "fileid": "https://r2.ropensci.org/5dd3a4f8faa31f20fb5534a40007dc1e6296407597460c1b5b51040636cb3b28",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29128565788"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-07-10T22:54:27.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3e62b86e74f59210aa2b1100715310940d38c2ba",
      "fileid": "https://r2.ropensci.org/e21da2121d142307a0407e3f6ddec0871858465a1266a56d170331b4fd6799b0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29128565788"
    }
  ]
}