Skip to content

actigraph.sleepr

Detect Periods of Sleep and Non-Wear in 'ActiGraph' Data

v0.3.1 · Jun 2, 2026 · GPL (>= 2)

Description

Reads *.agd files exported from 'ActiGraph' devices; implements the Troiano (2008) <doi:10.1249/mss.0b013e31815a51b3> and Choi (2011) <doi:10.1249/MSS.0b013e3181ed61a3> algorithms for detecting periods on non-wear; implements the Sadeh (1994) <doi:10.1093/sleep/17.3.201> and Cole-Kripke (1992) <doi:10.1093/sleep/15.5.461> algorithms for detecting asleep/awake state and the Tudor-Locke (2014) <doi:10.1139/apnm-2013-0173> algorithm to detect sleep periods from asleep/awake states.

Downloads

CRAN

524

Last 30 days

7429th

563

Last 90 days

563

Last year

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

r2u CRAN

30

Last 30 days

30

Last 90 days

30

Last year

autoCRAN

6

Last 7 days

42

Last 30 days

0

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

Changelog

Full NEWS →

v0.3.1

# actigraph.sleepr 0.3.1

• Added new tests and fixes for spelling.

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

whether package can be installed

Installation failed.
See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/actigraph.sleepr.Rcheck/00install.out’ for details.
OK 6 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 3, 2026

Code

Structure

Lines of code

3,858

Files

73

Compiled share

3.6%

Has compiled src

Yes

Language breakdown

R 1,663 (43.1%)C/C++/src 140 (3.6%)Tests 548 (14.2%)Docs 1,041 (27%)Vignettes 466 (12.1%)

API

Exported functions

19

Internal functions

29

Recent export changes

v0.3.1+19 %>%, apply_choi, apply_cole_kripke +16 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.33

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

94.7%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

14.3%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.2.4

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

1

First release

2026-06-02

Latest release

2026-06-02

Avg cadence

Cold removal rate

Dep drift

0

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

Dependency Network

Dependencies Reverse dependencies DBI RcppRoll RSQLite dplyr tidyr assertthat ggplot2 lubridate purrr rlang zoo magrittr tibble tidyselect actigraph.sleepr

Version History

1 tracked
new 0.3.1 Jun 2, 2026