Skip to content

sketching

Sketching of Data via Random Subspace Embeddings

v0.1.2 · Sep 7, 2022 · GPL-3

Description

Construct sketches of data via random subspace embeddings. For more details, see the following papers. Lee, S. and Ng, S. (2022). "Least Squares Estimation Using Sketched Data with Heteroskedastic Errors," Proceedings of the 39th International Conference on Machine Learning (ICML22), 162:12498-12520. Lee, S. and Ng, S. (2020). "An Econometric Perspective on Algorithmic Subsampling," Annual Review of Economics, 12(1): 45–80.

Downloads

CRAN

351

Last 30 days

12552nd

770

Last 90 days

2.8K

Last year

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

r2u CRAN

24

Last 30 days

115

Last 90 days

401

Last year

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

autoCRAN

3

Last 7 days

19

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 8, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 7, 2026
WARNING r-devel-linux-x86_64-debian-gcc

for code/documentation mismatches

Warning in file(open = "w+") :
  cannot open file '/tmp/RtmppIaUKs/Rf110e892f4d7708': No space left on device
Error in file(open = "w+") : cannot open the connection
Calls: <Anonymous> -> .load_package_quietly -> .try_quietly -> file
Execution halted
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/sketching.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

1,422

Files

27

Compiled share

3.9%

Has compiled src

Yes

Language breakdown

R 316 (22.2%)C/C++/src 55 (3.9%)Tests 142 (10%)Docs 208 (14.6%)Vignettes 701 (49.3%)

API

Exported functions

3

Internal functions

1

Recent export changes

v0.1.2−1 pattern:ˆ[[:alpha:]]+
v0.1.0+4 pattern:ˆ[[:alpha:]]+, sketch, sketch_leverage +1 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.45

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

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

50%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2022-06-08

Latest release

2022-09-07

Avg cadence

46 days

Cold removal rate

100%

Dep drift

0

LOC over versions

v0.1.0: 1,422 LOCv0.1.1: 1,422 LOCv0.1.2: 1,422 LOC

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

Dependency Network

Dependencies Reverse dependencies MASS Rcpp phangorn sketching

Version History

4 tracked
new 0.1.2 Mar 10, 2026
updated 0.1.2 ← 0.1.1 diff Sep 6, 2022
updated 0.1.1 ← 0.1.0 diff Aug 30, 2022
new 0.1.0 Jun 7, 2022