Common R Scripts and Utilities Used by the Statnet Project Software
Overview
Non-statistical utilities used by the software developed by the Statnet Project. They may also be of use to others.
New utilities
- New
testthatpredicate,skip_if_not_checking(), that skips the test if it's not part of anR CMD check, e.g., if run bytestthat::test_local(). - New function,
enlist()to wrap an object into a singleton list if it's not already a list, for various definitions of "list". - New function,
which_top_n(), to return the indices of top or bottomnelements of a vector, with several methods for resolving ties. - New function,
split_len()to split a split()-able object by lengths.
Enhancements to existing utilities
term_listobjects now haveenvir(),envir<-(),sign(), andsign<-()methods to better encapsulate their environment and sign information.ERRVL*()functions if not given any non-erroring expressions now throw the last error rather than a generic message.
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64
Found the following possibly unsafe calls:
File ‘statnet.common/R/control.utilities.R’:
unlockBinding("snctrl", environment(snctrl))
unlockBinding("snctrl", environment(update_my_snctrl))r-devel-windows-x86_64, r-oldrel-windows-x86_64, r-release-windows-x86_64
Found the following possibly unsafe calls:
File 'statnet.common/R/control.utilities.R':
unlockBinding("snctrl", environment(snctrl))
unlockBinding("snctrl", environment(update_my_snctrl))- NOTE13 NOTE2026-06-09
- WARNING12 NOTE, 1 WARNING2026-06-08
- NOTE14 NOTE2026-03-10
Documentation
- Help pages
- 61
- Examples that run
- 91%39 run in a plain check · 4 never run
- Exported functions with examples
- 73%
- Documented parameters
- 80%
- Return-value docs
- 70%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 70%
- Median days to close, 50 most recently updated closed issues
- 8
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/statnet/statnet.common on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing statnet.common adds 1 package (0 with compiled code, 73 KB of source tarballs). Heaviest: coda 73 KB.
Show all 27 packagesHide all 27 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 4.13.0Latest2025-12-16 · current release · diff ↗ ·
added 7 exports
envir<-, sign<-, enlist, envir, skip_if_not_checking, split_len, which_top_n - 4.12.02025-05-30 · diff ↗ ·
added 14 exports
replace<-, ERRVL2, ERRVL3, arr_from_coo, arr_to_coo, match_names, qrsolve, qrssolve, replace, sandwich_ginv, sandwich_qrsolve, sandwich_qrssolve, sandwich_sginv, set_diag - RR 4.5.0 released · 2025-04-11
- 4.11.0
- 4.10.0
- RR 4.4.0 released · 2024-04-24
- 4.9.02023-05-24 · diff ↗ ·
added 14 exports
is.SPD, lweighted.cov, sandwich_solve, sandwich_ssolve, sginv, snearPD, srcond, ssolve, xAxT, xTAx, xTAx_qrsolve, xTAx_qrssolve, xTAx_solve, xTAx_ssolve - RR 4.3.0 released · 2023-04-21
- 4.8.0
- 4.7.0
- 4.6.0
- RR 4.2.0 released · 2022-04-22
- 4.5.02021-06-05 · diff ↗ ·
removed 3 exports
as.rle, compact.rle, compressadded 16 exports
COLLATE_ALL_MY_CONTROLS_EXPR, UPDATE_MY_SCTRL_EXPR, as.control.list, attr, base_env, collate_controls, default_options, empty_env, fixed.pval, handle.controls, locate_function, locate_prefixed_function, simplify_simple, snctrl, snctrl_names, update_snctrl - RR 4.1.0 released · 2021-05-18
- 4.4.12020-10-03 · diff ↗ ·
removed 3 exports
binop.rle, compress.data.frame, decompress.data.frameadded 3 exports
compress, deInf, trim_env
Show 19 earlier eventsHide 19 earlier events
- RR 4.0.0 released · 2020-04-24
- 4.3.0
- RR 3.6.0 released · 2019-04-26
- 4.2.0
- 4.1.42018-06-22 · diff ↗
- 4.1.22018-06-05 · diff ↗ ·
added 15 exports
NVL2, NVL3, append_rhs.formula, as.rle, colMeans.mcmc.list, despace, eval_lhs.formula, filter_rhs.formula, lapply.mcmc.list, list_rhs.formula, list_summands.call, message_print, nonsimp_update.formula, sweep.mcmc.list, unwhich - RR 3.5.0 released · 2018-04-23
- 4.0.02017-08-16 · diff ↗ ·
removed 1 export
pattern:^[^\\.]added 40 exports
NVL<-, lrowweights<-, rowweights<-, ERRVL, NVL, all_identical, append.rhs.formula, as.linwmatrix, as.logwmatrix, binop.rle, check.control.class, compact.rle, compress.data.frame, compress_rows, control.remap, decompress.data.frame, decompress_rows, is.linwmatrix, is.logwmatrix, is.wmatrix, linwmatrix, log_mean_exp, log_sum_exp, logwmatrix, lrowweights, lweighted.mean, lweighted.var, nonsimp.update.formula, opttest, order and 10 more - RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 3.3.02015-10-24 · diff ↗
- 3.2.32015-08-05 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 3.2.22014-12-09 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 3.1.12013-11-28 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 3.1-02013-03-06
- RR 2.15.0 released · 2012-03-30
Package metadata
- First published
- 2013-03-06
- Total releases
- 20 / 13 yrs
- License
- GPL-3 + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Download size
- 92 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("statnet.common")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
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.