- using R version 4.6.1 (2026-06-24)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-16 (Debian 16.2.0-1) 16.2.0
GNU Fortran (Debian 16.2.0-1) 16.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-09-12 08:45:37 UTC
- checking for file ‘actigraph.sleepr/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘actigraph.sleepr’ version ‘0.3.1’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘actigraph.sleepr’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘g++-16 (Debian 16.2.0-1) 16.2.0’
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [2s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [2s/2s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [12s/15s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [8s/10s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [13s/15s] ERROR
Running ‘testthat.R’ [13s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(tidyr)
> library(dplyr)
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
> library(actigraph.sleepr)
>
> test_check("actigraph.sleepr")
Saving _problems/test_nonwear_func-49.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 92 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_nonwear_func.R:43:7'): apply_troiano return same result as ActiLife 6 ──
<dplyr:::mutate_error/rlang_error/error/condition>
Error in `mutate(., count = if (use_magnitude) .data$magnitude else .data$axis1, count = if_else(.data$count > max_nonzero_count, 0L, .data$count), length = wle(.data$count, activity_threshold, spike_tolerance, spike_stoplevel))`: ℹ In argument: `length = wle(.data$count, activity_threshold,
spike_tolerance, spike_stoplevel)`.
Caused by error in `wle()`:
! function 'enterRNGScope' not provided by package 'Rcpp'
Backtrace:
▆
1. ├─params %>% rowwise() %>% ... at test_nonwear_func.R:34:3
2. ├─dplyr::do(...)
3. ├─dplyr:::do.rowwise_df(...)
4. │ └─rlang::eval_tidy(args[[j]], mask)
5. ├─epochs %>% ... at test_nonwear_func.R:43:7
6. ├─actigraph.sleepr::apply_troiano(...)
7. │ └─agdb %>% ...
8. ├─dplyr::group_modify(...)
9. ├─dplyr:::group_modify.data.frame(...)
10. │ └─actigraph.sleepr (local) .f(.data, group_keys(.data), ...)
11. │ └─actigraph.sleepr:::apply_troiano_nonseq_(...)
12. │ └─... %>% select("period_start", "period_end", "length")
13. ├─dplyr::select(., "period_start", "period_end", "length")
14. ├─dplyr::filter(., overlap(.data$a, .data$b))
15. ├─dplyr::mutate(...)
16. ├─dplyr::mutate(...)
17. ├─dplyr::select(., period_start = "timestamp", "length")
18. ├─dplyr::filter(., .data$length >= min_period_len)
19. ├─dplyr::mutate(...)
20. ├─dplyr:::mutate.data.frame(...)
21. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
22. │ ├─base::withCallingHandlers(...)
23. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
24. │ └─mask$eval_all_mutate(quo)
25. │ └─dplyr (local) eval()
26. ├─actigraph.sleepr:::wle(...)
27. └─base::.handleSimpleError(...)
28. └─dplyr (local) h(simpleError(msg, call))
29. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 92 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [15s/19s] OK
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR