* using log directory ‘/Users/ripley/R/packages/tests-devel/readSX.Rcheck’ * using R Under development (unstable) (2023-11-14 r85524) * using platform: aarch64-apple-darwin23.1.0 * R was compiled by Apple clang version 15.0.0 (clang-1500.1.0.2.4) GNU Fortran (GCC) 12.2.0 * running under: macOS Sonoma 14.1.1 * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘readSX/DESCRIPTION’ ... OK * this is package ‘readSX’ version ‘0.8.4’ * 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 whether package ‘readSX’ can be installed ... OK * checking installed package size ... OK * checking package 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... 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 examples ... [37s/38s] ERROR Running examples in ‘readSX-Ex.R’ failed The error most likely occurred in: > ### Name: read_surveyxact > ### Title: Import Data Generated by SurveyXact > ### Aliases: read_surveyxact > > ### ** Examples > > dataset <- system.file("extdata", "ex_survey2_tab_utf16", "dataset.csv", + package = "readSX", mustWork = TRUE + ) > labels <- system.file("extdata", "ex_survey2_tab_utf16", "labels.csv", + package = "readSX", mustWork = TRUE + ) > structure <- system.file("extdata", "ex_survey2_tab_utf16", "structure.csv", + package = "readSX", mustWork = TRUE + ) > ex_survey2_tab_utf16 <- + read_surveyxact(filepath = c( + dataset = dataset, + labels = labels, + structure = structure + )) Warning in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on '/Users/ripley/R/packages/tests-devel/readSX.Rcheck/readSX/extdata/ex_survey2_tab_utf16/dataset.csv' Warning in read.table(file = file, header = header, sep = sep, quote = quote, : invalid input found on input connection '/Users/ripley/R/packages/tests-devel/readSX.Rcheck/readSX/extdata/ex_survey2_tab_utf16/labels.csv' Warning: ℹ Unable to find following Labels-variables in Dataset-variables: ℹ c("b_1", "b_2", "b_3", "b_4", "b_5", "b_6_1", "b_6_2", "b_6_3", "b_7_1", "b_7_2", "b_7_3", "b_7_4", "b_8_1", "b_8_2", "b_8_3", "bp_00", "bp_01", "bp_02", "bp_03", "bp_04", "bp_05", "bp_06", "bp_07", "bp_08", "bp_09", "bp_10", "bp_11", "bp_12", "bp_13", "bp_14", "bp_15", "bp_16", "bp_17", "bp_18", "bp_19", "bp_20", "bp_21", "bp_22", "bp_23", "bp_24", "bp_25", "bp_26", "bp_27", "bp_28", "bp_29", "bp_30", "bp_31", "bp_32", "bp_33", "bp_34", "bp_35", "bp_36", "bp_37", "bp_38", "bp_39", "bp_40", "bp_41", "bp_42", "bp_43", "bp_44", "bp_45", "bp_46", "bp_47", "bp_48", "bp_49", "bp_50", "bp_51", "bp_52", "bp_53", "bp_54", "bp_55", "bp_56", "bp_57", "bp_58", "fp_01", "fp_02", "fp_03", "fp_04", "fp_05", "fp_06", "fp_07", "fp_08", "fp_09", "fp_10", "fp_11", "fp_12", "fp_13", "fp_14", "fp_15", "fp_16", "fp_17", "fp_18", "fp_19", "hm_1", "hm_2", "hm_3", "hm_4", "hm_5", "hm_6", "hm_7", "hn_1", "hn_2", "hn_3", "hn_4", "hn_5", "hn_6", "hn_7", "i_01", "i_02", "i_03", "i_04", "i_05", "i_06", "i_07", "i_08", "i_09", "i_10", "i_11", "i_12", "i_13", "i_14", "i_15", "i_16", "i_17", "i_18", "pb_1", "stato_1", "stato_2", "stato_3", "stato_4", "stato_5", "up_01", "up_02", "up_03", "up_04", "up_05", "up_06", "up_07", "up_08", "up_09", "up_10", "up_11", "up_12", "up_13", "up_14" ). Error in attr(df_data[[nm]], "label") <- label : attempt to set an attribute on NULL Calls: read_surveyxact Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [75s/76s] [75s/76s] ERROR 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(readSX) > > testthat::test_check("readSX") [ FAIL 2 | WARN 6 | SKIP 0 | PASS 15 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-read_surveyxact.R:44:7'): Read in tab_utf16 CSV, unnamed filepaths ── Error in `attr(df_data[[nm]], "label") <- label`: attempt to set an attribute on NULL Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-read_surveyxact.R:42:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─readSX::read_surveyxact(filepath = files) at test-read_surveyxact.R:44:7 ── Error ('test-read_surveyxact.R:85:3'): Read in tab_utf16 CSV, named filepaths ── Error in `attr(df_data[[nm]], "label") <- label`: attempt to set an attribute on NULL Backtrace: ▆ 1. └─readSX::read_surveyxact(filepath = files) at test-read_surveyxact.R:85:3 [ FAIL 2 | WARN 6 | SKIP 0 | PASS 15 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs See ‘/Users/ripley/R/packages/tests-devel/readSX.Rcheck/00check.log’ for details. 126.60 real 121.03 user 2.89 sys