CRAN Package Check Results for Package wrictools

Last updated on 2026-05-08 03:51:51 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-fedora-clang 1.0.1 16.00 160.77 176.77 OK
r-release-macos-arm64 1.0.1 2.00 31.00 33.00 ERROR
r-release-macos-x86_64 1.0.1 6.00 132.00 138.00 ERROR
r-oldrel-macos-arm64 1.0.1 ERROR
r-oldrel-macos-x86_64 1.0.1 6.00 136.00 142.00 ERROR

Check Details

Version: 1.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [3s/3s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(wrictools) > > test_check("wrictools") Starting time for room 1 is 2023-11-13 21:14:22 and end 2023-11-14 08:47:48 and for room 2 start is 2023-11-13 21:14:22 and end 2023-11-14 08:51:36 Starting time for room 1 is 2023-11-13 21:14:22 and end 2023-11-14 08:47:48 and for room 2 start is 2023-11-13 21:14:22 and end 2023-11-14 08:51:36 Saving _problems/test-processing-416.R variable mean sd min max slope 1 VO2 356.7205 100.54488 -29.90960 786.6187 0.002766024 2 VCO2 298.4697 87.95359 -45.17043 674.9738 0.002499467 variable mean sd min max slope 1 VO2 332.0050 122.09571 -500.9322 708.2423 0.001944661 2 VCO2 267.9337 99.32789 -413.3808 565.4705 0.001476097 variable mean sd min max slope 1 VO2 47.500000 7.745967 30 62 -0.0096304348 2 VCO2 8.791667 1.052086 7 10 -0.0005289855 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 79 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-processing.R:416:3'): extract_protocol_events works for old and new software ── Expected `as.character(first_entry_v2$timestamp)` to equal "2026-01-14 11:58:01". Differences: `actual`: "2026-01-13 11:58:01" `expected`: "2026-01-14 11:58:01" [ FAIL 1 | WARN 0 | SKIP 0 | PASS 79 ] Error: ! Test failures. Execution halted Flavors: r-release-macos-arm64, r-oldrel-macos-arm64

Version: 1.0.1
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building ‘RedCAP.Rmd’ using rmarkdown --- finished re-building ‘RedCAP.Rmd’ --- re-building ‘test_analysis.Rmd’ using rmarkdown --- finished re-building ‘test_analysis.Rmd’ --- re-building ‘wrictools.Rmd’ using rmarkdown preprocess_wric_file package:wrictools R Documentation _<08>P_<08>r_<08>e_<08>p_<08>r_<08>o_<08>c_<08>e_<08>s_<08>s_<08>e_<08>s _<08>a _<08>w_<08>r_<08>i_<08>c _<08>d_<08>a_<08>t_<08>a _<08>f_<08>i_<08>l_<08>e, _<08>e_<08>x_<08>t_<08>r_<08>a_<08>c_<08>t_<08>i_<08>n_<08>g _<08>m_<08>e_<08>t_<08>a_<08>d_<08>a_<08>t_<08>a, _<08>c_<08>r_<08>e_<08>a_<08>t_<08>i_<08>n_<08>g _<08>D_<08>a_<08>t_<08>a_<08>F_<08>r_<08>a_<08>m_<08>e_<08>s, _<08>a_<08>n_<08>d _<08>o_<08>p_<08>t_<08>i_<08>o_<08>n_<08>a_<08>l_<08>l_<08>y _<08>s_<08>a_<08>v_<08>i_<08>n_<08>g _<08>r_<08>e_<08>s_<08>u_<08>l_<08>t_<08>s. _<08>D_<08>e_<08>s_<08>c_<08>r_<08>i_<08>p_<08>t_<08>i_<08>o_<08>n: Preprocesses a wric data file, extracting metadata, creating DataFrames, and optionally saving results. _<08>U_<08>s_<08>a_<08>g_<08>e: preprocess_wric_file( filepath, code = "id", manual = NULL, save_csv = FALSE, path_to_save = NULL, combine = TRUE, method = "mean", start = NULL, end = NULL, notefilepath = NULL, keywords_dict = NULL, entry_exit_dict = NULL ) _<08>A_<08>r_<08>g_<08>u_<08>m_<08>e_<08>n_<08>t_<08>s: filepath: Path to the wric .txt file. code: Method for generating subject IDs ("id", "id+comment", "study+id" (only for software v2), or "manual"). manual: Custom codes for subjects in Room 1 and Room 2 if 'code' is "manual". save_csv: Logical, whether to save extracted metadata and data to CSV files. path_to_save: Directory path for saving CSV files, NULL uses the current directory. combine: Logical, whether to combine S1 and S2 measurements. method: Method for combining measurements ("mean", "median", "s1", "s2", "min", "max"). start: character or POSIXct or NULL, rows before this will be removed, if NULL takes first row e.g "2023-11-13 11:43:00" end: character or POSIXct or NULL, rows after this will be removed, if NULL takes last row e.g "2023-11-13 11:43:00" notefilepath: String, Directory path of the corresponding note file (.txt) keywords_dict: List, A dictionary of keywords used to extract protocol events from a note file. Each entry should be a named list with: keywords A character vector of keywords or phrases to match in the note comment. Matching is case-insensitive. value Numeric protocol value to assign when the keyword is detected. type Optional character, either "instant" or omitted. "instant" events are applied at the specified timestamp and revert to the previous protocol immediately after. Non-instant events set the protocol until another event occurs. Behavior rules: Non-instant events Set the protocol value from their timestamp until another event overwrites it or until a stop keyword sets it to 0. Instant events Apply only at the timestamp of the note line, then revert to the protocol that was active immediately before. Stop keywords Always set the protocol to 0, regardless of previous state, unless overridden by an instant event. If 'NULL', a default set of keywords is used. entry_exit_dict: Nested List, used to extract entry/exit times from note file _<08>V_<08>a_<08>l_<08>u_<08>e: list A list with the following components: version Character string indicating the detected software version ('"1"' for old software, '"2"' for new software). metadata A named list containing extracted metadata. For version 1, this includes 'r1' and 'r2'. For version 2, this contains a single 'metadata' entry. dfs A named list containing processed data frames. For version 1: 'room1' and 'room2'. For version 2: 'data'. _<08>E_<08>x_<08>a_<08>m_<08>p_<08>l_<08>e_<08>s: outdir <- file.path(tempdir(), "wrictools") dir.create(outdir, showWarnings = FALSE) data_txt <- system.file("extdata", "data.txt", package = "wrictools") result <- preprocess_wric_file(data_txt, path_to_save = outdir) unlink(outdir, recursive = TRUE) Quitting from wrictools.Rmd:312-319 [unnamed-chunk-19] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `dinner_index:(dinner_index + 14)`: ! NA/NaN argument --- Backtrace: ▆ 1. ├─data[dinner_index:(dinner_index + 14), ] 2. └─base::`[.data.frame`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'wrictools.Rmd' failed with diagnostics: NA/NaN argument --- failed re-building ‘wrictools.Rmd’ SUMMARY: processing the following file failed: ‘wrictools.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-release-macos-arm64

Version: 1.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [8s/13s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(wrictools) > > test_check("wrictools") Starting time for room 1 is 2023-11-13 21:14:22 and end 2023-11-14 08:47:48 and for room 2 start is 2023-11-13 21:14:22 and end 2023-11-14 08:51:36 Starting time for room 1 is 2023-11-13 21:14:22 and end 2023-11-14 08:47:48 and for room 2 start is 2023-11-13 21:14:22 and end 2023-11-14 08:51:36 Saving _problems/test-processing-402.R variable mean sd min max slope 1 VO2 356.7205 100.54488 -29.90960 786.6187 0.002766024 2 VCO2 298.4697 87.95359 -45.17043 674.9738 0.002499467 variable mean sd min max slope 1 VO2 332.0050 122.09571 -500.9322 708.2423 0.001944661 2 VCO2 267.9337 99.32789 -413.3808 565.4705 0.001476097 variable mean sd min max slope 1 VO2 47.500000 7.745967 30 62 -0.0096304348 2 VCO2 8.791667 1.052086 7 10 -0.0005289855 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 79 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-processing.R:402:3'): extract_protocol_events works for old and new software ── Expected `as.character(first_entry_v1$timestamp)` to equal "2023-11-13 22:41:14". Differences: `actual`: "2023-11-14 22:41:14" `expected`: "2023-11-13 22:41:14" [ FAIL 1 | WARN 0 | SKIP 0 | PASS 79 ] Error: ! Test failures. Execution halted Flavor: r-release-macos-x86_64

Version: 1.0.1
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building ‘RedCAP.Rmd’ using rmarkdown --- finished re-building ‘RedCAP.Rmd’ --- re-building ‘test_analysis.Rmd’ using rmarkdown 2026-05-08 09:07:56.542 R[94467:477181] XType: Using static font registry. --- finished re-building ‘test_analysis.Rmd’ --- re-building ‘wrictools.Rmd’ using rmarkdown preprocess_wric_file package:wrictools R Documentation _<08>P_<08>r_<08>e_<08>p_<08>r_<08>o_<08>c_<08>e_<08>s_<08>s_<08>e_<08>s _<08>a _<08>w_<08>r_<08>i_<08>c _<08>d_<08>a_<08>t_<08>a _<08>f_<08>i_<08>l_<08>e, _<08>e_<08>x_<08>t_<08>r_<08>a_<08>c_<08>t_<08>i_<08>n_<08>g _<08>m_<08>e_<08>t_<08>a_<08>d_<08>a_<08>t_<08>a, _<08>c_<08>r_<08>e_<08>a_<08>t_<08>i_<08>n_<08>g _<08>D_<08>a_<08>t_<08>a_<08>F_<08>r_<08>a_<08>m_<08>e_<08>s, _<08>a_<08>n_<08>d _<08>o_<08>p_<08>t_<08>i_<08>o_<08>n_<08>a_<08>l_<08>l_<08>y _<08>s_<08>a_<08>v_<08>i_<08>n_<08>g _<08>r_<08>e_<08>s_<08>u_<08>l_<08>t_<08>s. _<08>D_<08>e_<08>s_<08>c_<08>r_<08>i_<08>p_<08>t_<08>i_<08>o_<08>n: Preprocesses a wric data file, extracting metadata, creating DataFrames, and optionally saving results. _<08>U_<08>s_<08>a_<08>g_<08>e: preprocess_wric_file( filepath, code = "id", manual = NULL, save_csv = FALSE, path_to_save = NULL, combine = TRUE, method = "mean", start = NULL, end = NULL, notefilepath = NULL, keywords_dict = NULL, entry_exit_dict = NULL ) _<08>A_<08>r_<08>g_<08>u_<08>m_<08>e_<08>n_<08>t_<08>s: filepath: Path to the wric .txt file. code: Method for generating subject IDs ("id", "id+comment", "study+id" (only for software v2), or "manual"). manual: Custom codes for subjects in Room 1 and Room 2 if 'code' is "manual". save_csv: Logical, whether to save extracted metadata and data to CSV files. path_to_save: Directory path for saving CSV files, NULL uses the current directory. combine: Logical, whether to combine S1 and S2 measurements. method: Method for combining measurements ("mean", "median", "s1", "s2", "min", "max"). start: character or POSIXct or NULL, rows before this will be removed, if NULL takes first row e.g "2023-11-13 11:43:00" end: character or POSIXct or NULL, rows after this will be removed, if NULL takes last row e.g "2023-11-13 11:43:00" notefilepath: String, Directory path of the corresponding note file (.txt) keywords_dict: List, A dictionary of keywords used to extract protocol events from a note file. Each entry should be a named list with: keywords A character vector of keywords or phrases to match in the note comment. Matching is case-insensitive. value Numeric protocol value to assign when the keyword is detected. type Optional character, either "instant" or omitted. "instant" events are applied at the specified timestamp and revert to the previous protocol immediately after. Non-instant events set the protocol until another event occurs. Behavior rules: Non-instant events Set the protocol value from their timestamp until another event overwrites it or until a stop keyword sets it to 0. Instant events Apply only at the timestamp of the note line, then revert to the protocol that was active immediately before. Stop keywords Always set the protocol to 0, regardless of previous state, unless overridden by an instant event. If 'NULL', a default set of keywords is used. entry_exit_dict: Nested List, used to extract entry/exit times from note file _<08>V_<08>a_<08>l_<08>u_<08>e: list A list with the following components: version Character string indicating the detected software version ('"1"' for old software, '"2"' for new software). metadata A named list containing extracted metadata. For version 1, this includes 'r1' and 'r2'. For version 2, this contains a single 'metadata' entry. dfs A named list containing processed data frames. For version 1: 'room1' and 'room2'. For version 2: 'data'. _<08>E_<08>x_<08>a_<08>m_<08>p_<08>l_<08>e_<08>s: outdir <- file.path(tempdir(), "wrictools") dir.create(outdir, showWarnings = FALSE) data_txt <- system.file("extdata", "data.txt", package = "wrictools") result <- preprocess_wric_file(data_txt, path_to_save = outdir) unlink(outdir, recursive = TRUE) Quitting from wrictools.Rmd:312-319 [unnamed-chunk-19] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `dinner_index:(dinner_index + 14)`: ! NA/NaN argument --- Backtrace: ▆ 1. ├─data[dinner_index:(dinner_index + 14), ] 2. └─base::`[.data.frame`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'wrictools.Rmd' failed with diagnostics: NA/NaN argument --- failed re-building ‘wrictools.Rmd’ SUMMARY: processing the following file failed: ‘wrictools.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-oldrel-macos-arm64

Version: 1.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [8s/14s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(wrictools) > > test_check("wrictools") Starting time for room 1 is 2023-11-13 21:14:22 and end 2023-11-14 08:47:48 and for room 2 start is 2023-11-13 21:14:22 and end 2023-11-14 08:51:36 Starting time for room 1 is 2023-11-13 21:14:22 and end 2023-11-14 08:47:48 and for room 2 start is 2023-11-13 21:14:22 and end 2023-11-14 08:51:36 Saving _problems/test-processing-402.R variable mean sd min max slope 1 VO2 356.7205 100.54488 -29.90960 786.6187 0.002766024 2 VCO2 298.4697 87.95359 -45.17043 674.9738 0.002499467 variable mean sd min max slope 1 VO2 332.0050 122.09571 -500.9322 708.2423 0.001944661 2 VCO2 267.9337 99.32789 -413.3808 565.4705 0.001476097 variable mean sd min max slope 1 VO2 47.500000 7.745967 30 62 -0.0096304348 2 VCO2 8.791667 1.052086 7 10 -0.0005289855 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 79 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-processing.R:402:3'): extract_protocol_events works for old and new software ── Expected `as.character(first_entry_v1$timestamp)` to equal "2023-11-13 22:41:14". Differences: `actual`: "2023-11-14 22:41:14" `expected`: "2023-11-13 22:41:14" [ FAIL 1 | WARN 0 | SKIP 0 | PASS 79 ] Error: ! Test failures. Execution halted Flavor: r-oldrel-macos-x86_64