Last updated on 2026-09-07 06:49:51 CEST.
| Package | OK | ERROR |
|---|---|---|
| actigraph.sleepr | 11 | 2 |
Current CRAN status: OK: 11, ERROR: 2
Version: 0.3.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [10s/34s]
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
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.3.1
Check: whether package can be installed
Result: ERROR
Installation failed.
Flavor: r-devel-linux-x86_64-fedora-gcc