* using log directory 'd:/Rcompile/CRANpkg/local/4.0/cfid.Rcheck' * using R version 4.0.5 (2021-03-31) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'cfid/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'cfid' version '0.1.2' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'cfid' 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 ... [7s] NOTE reg_match: no visible global function definition for 'gregexec' Undefined global functions or variables: gregexec * 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 ... [1s] ERROR Running examples in 'cfid-Ex.R' failed The error most likely occurred in: > ### Name: CounterfactualConjunction > ### Title: Counterfactual Conjunction > ### Aliases: CounterfactualConjunction conj > > ### ** Examples > > # The conjunction described in 'details' > v1 <- cf("Y", 0) > v2 <- cf("Y", 1, c("X" = 0)) > c1 <- conj(v1, v2) > > # Alternative construction > c1 <- v1 + v2 > > # Adding further variables > v3 <- cf("X", 1) > c2 <- c1 + v3 Warning: Incompatible methods ("+.CounterfactualConjunction", "+.CounterfactualVariable") for "+" Error in c1 + v3 : non-numeric argument to binary operator Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [3s] ERROR Running 'testthat.R' [3s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(cfid) > > test_check("cfid") [ FAIL 12 | WARN 1 | SKIP 0 | PASS 38 ] == Failed tests ================================================================ -- Error (test-algorithms.R:3:1): (code run outside of `test_that()`) ---------- Error in `gregexec(pattern, x, perl)`: could not find function "gregexec" Backtrace: x 1. \-cfid::dag("X -> W -> Y <- Z <- D X <-> Y") at test-algorithms.R:3:0 2. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") -- Error (test-counterfactuals.R:50:5): arithmetic ----------------------------- Error in `conj(v1) + v2`: non-numeric argument to binary operator Backtrace: x 1. \-testthat::expect_identical(conj(v1) + v2, c1) at test-counterfactuals.R:50:4 2. \-testthat::quasi_label(enquo(object), label, arg = "object") 3. \-rlang::eval_bare(expr, quo_get_env(quo)) -- Error (test-graphs.R:10:5): extra delimiter invariance ---------------------- Error in `gregexec(pattern, x, perl)`: could not find function "gregexec" Backtrace: x 1. +-testthat::expect_identical(dag("X -> Y -> Z"), dag("X -> Y; Y -> Z")) at test-graphs.R:10:4 2. | \-testthat::quasi_label(enquo(object), label, arg = "object") 3. | \-rlang::eval_bare(expr, quo_get_env(quo)) 4. \-cfid::dag("X -> Y -> Z") 5. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") -- Error (test-graphs.R:16:5): zero edges is allowed --------------------------- Error in `gregexec(pattern, x, perl)`: could not find function "gregexec" Backtrace: x 1. +-testthat::expect_length(attr(dag("X Y Z"), "labels"), 3) at test-graphs.R:16:4 2. | \-testthat::quasi_label(enquo(object), arg = "object") 3. | \-rlang::eval_bare(expr, quo_get_env(quo)) 4. \-cfid::dag("X Y Z") 5. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") -- Error (test-graphs.R:21:5): duplicate edge invariance ----------------------- Error in `gregexec(pattern, x, perl)`: could not find function "gregexec" Backtrace: x 1. +-testthat::expect_identical(dag("X -> Y <- X"), dag("X -> Y")) at test-graphs.R:21:4 2. | \-testthat::quasi_label(enquo(object), label, arg = "object") 3. | \-rlang::eval_bare(expr, quo_get_env(quo)) 4. \-cfid::dag("X -> Y <- X") 5. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") -- Failure (test-graphs.R:42:5): allowed structures ---------------------------- `dag("x -> {y z} <- w <-> g")` threw an unexpected error. Message: could not find function "gregexec" Class: simpleError/error/condition Backtrace: x 1. +-testthat::expect_error(dag("x -> {y z} <- w <-> g"), NA) at test-graphs.R:42:4 2. | \-testthat:::expect_condition_matching(...) 3. | \-testthat:::quasi_capture(...) 4. | +-testthat .capture(...) 5. | | \-base::withCallingHandlers(...) 6. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. \-cfid::dag("x -> {y z} <- w <-> g") 8. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") -- Failure (test-graphs.R:43:5): allowed structures ---------------------------- `dag("{x z} -> {y w}")` threw an unexpected error. Message: could not find function "gregexec" Class: simpleError/error/condition Backtrace: x 1. +-testthat::expect_error(dag("{x z} -> {y w}"), NA) at test-graphs.R:43:4 2. | \-testthat:::expect_condition_matching(...) 3. | \-testthat:::quasi_capture(...) 4. | +-testthat .capture(...) 5. | | \-base::withCallingHandlers(...) 6. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. \-cfid::dag("{x z} -> {y w}") 8. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") -- Failure (test-graphs.R:44:5): allowed structures ---------------------------- `dag("x -> z -> y; x <-> y")` threw an unexpected error. Message: could not find function "gregexec" Class: simpleError/error/condition Backtrace: x 1. +-testthat::expect_error(dag("x -> z -> y; x <-> y"), NA) at test-graphs.R:44:4 2. | \-testthat:::expect_condition_matching(...) 3. | \-testthat:::quasi_capture(...) 4. | +-testthat .capture(...) 5. | | \-base::withCallingHandlers(...) 6. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. \-cfid::dag("x -> z -> y; x <-> y") 8. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") -- Failure (test-graphs.R:45:5): allowed structures ---------------------------- `dag("{x, y, z} -> w")` threw an unexpected error. Message: could not find function "gregexec" Class: simpleError/error/condition Backtrace: x 1. +-testthat::expect_error(dag("{x, y, z} -> w"), NA) at test-graphs.R:45:4 2. | \-testthat:::expect_condition_matching(...) 3. | \-testthat:::quasi_capture(...) 4. | +-testthat .capture(...) 5. | | \-base::withCallingHandlers(...) 6. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. \-cfid::dag("{x, y, z} -> w") 8. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") -- Failure (test-graphs.R:46:5): allowed structures ---------------------------- `dag("z -> w\nx -> y")` threw an unexpected error. Message: could not find function "gregexec" Class: simpleError/error/condition Backtrace: x 1. +-testthat::expect_error(dag("z -> w\nx -> y"), NA) at test-graphs.R:46:4 2. | \-testthat:::expect_condition_matching(...) 3. | \-testthat:::quasi_capture(...) 4. | +-testthat .capture(...) 5. | | \-base::withCallingHandlers(...) 6. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. \-cfid::dag("z -> w\nx -> y") 8. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") -- Error (test-graphs.R:51:1): (code run outside of `test_that()`) ------------- Error in `gregexec(pattern, x, perl)`: could not find function "gregexec" Backtrace: x 1. \-cfid::dag("X -> W -> Y <- Z <- D X <-> Y") at test-graphs.R:51:0 2. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") -- Error (test-probability.R:13:1): (code run outside of `test_that()`) -------- Error in `gregexec(pattern, x, perl)`: could not find function "gregexec" Backtrace: x 1. \-cfid::dag("X -> W -> Y <- Z <- D X <-> Y") at test-probability.R:13:0 2. \-cfid:::reg_match(x, "\\{([^<>\\-]+)\\}|([^<> \\-]+)|(<->|<-|->)") [ FAIL 12 | WARN 1 | SKIP 0 | PASS 38 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 NOTE