R version 4.4.0 alpha (2024-04-03 r86327 ucrt) Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > require(proxyC) Loading required package: proxyC Attaching package: 'proxyC' The following object is masked from 'package:stats': dist > require(testthat) Loading required package: testthat > test_check("proxyC") [ FAIL 12 | WARN 0 | SKIP 0 | PASS 184 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-simil.R:26:5'): test cosine similarity ───────────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─global test_simil(mat_test, "cosine", margin = 1, use_nan = TRUE) at test-simil.R:26:5 2. │ ├─base::suppressWarnings(...) 3. │ │ └─base::withCallingHandlers(...) 4. │ ├─base::as.matrix(...) 5. │ └─proxyC::simil(...) 6. │ └─proxyC:::proxy(...) 7. │ └─base::stop("proxyC.threads must be an integer") 8. └─base::.handleSimpleError(...) 9. └─base (local) h(simpleError(msg, call)) ── Error ('test-simil.R:32:5'): test correlation similarity ──────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─global test_simil(mat_test, "correlation", margin = 1, use_nan = TRUE) at test-simil.R:32:5 2. │ ├─base::suppressWarnings(...) 3. │ │ └─base::withCallingHandlers(...) 4. │ ├─base::as.matrix(...) 5. │ └─proxyC::simil(...) 6. │ └─proxyC:::proxy(...) 7. │ └─base::stop("proxyC.threads must be an integer") 8. └─base::.handleSimpleError(...) 9. └─base (local) h(simpleError(msg, call)) ── Error ('test-simil.R:39:5'): test jaccard similarity ──────────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─global test_simil(mat_test[-1, ], "jaccard", margin = 1) at test-simil.R:39:5 2. │ ├─base::suppressWarnings(...) 3. │ │ └─base::withCallingHandlers(...) 4. │ ├─base::as.matrix(...) 5. │ └─proxyC::simil(...) 6. │ └─proxyC:::proxy(...) 7. │ └─base::stop("proxyC.threads must be an integer") 8. └─base::.handleSimpleError(...) 9. └─base (local) h(simpleError(msg, call)) ── Error ('test-simil.R:46:5'): test ejaccard similarity ─────────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─global test_simil(mat_test[-1, ], "ejaccard", margin = 1) at test-simil.R:46:5 2. │ ├─base::suppressWarnings(...) 3. │ │ └─base::withCallingHandlers(...) 4. │ ├─base::as.matrix(...) 5. │ └─proxyC::simil(...) 6. │ └─proxyC:::proxy(...) 7. │ └─base::stop("proxyC.threads must be an integer") 8. └─base::.handleSimpleError(...) 9. └─base (local) h(simpleError(msg, call)) ── Error ('test-simil.R:55:5'): test fjaccard similarity ─────────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─base::as.matrix(simil(mat_prob, margin = 1, method = "fjaccard")) at test-simil.R:55:5 2. ├─proxyC::simil(mat_prob, margin = 1, method = "fjaccard") 3. │ └─proxyC:::proxy(...) 4. │ └─base::stop("proxyC.threads must be an integer") 5. └─base::.handleSimpleError(...) 6. └─base (local) h(simpleError(msg, call)) ── Error ('test-simil.R:67:5'): test dice similarity ─────────────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─global test_simil(mat_test[1:3 * -1, ], "dice", margin = 1) at test-simil.R:67:5 2. │ ├─base::suppressWarnings(...) 3. │ │ └─base::withCallingHandlers(...) 4. │ ├─base::as.matrix(...) 5. │ └─proxyC::simil(...) 6. │ └─proxyC:::proxy(...) 7. │ └─base::stop("proxyC.threads must be an integer") 8. └─base::.handleSimpleError(...) 9. └─base (local) h(simpleError(msg, call)) ── Error ('test-simil.R:74:5'): test edice similarity ────────────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─global test_simil(mat_test[1:3 * -1, ], "edice", margin = 1) at test-simil.R:74:5 2. │ ├─base::suppressWarnings(...) 3. │ │ └─base::withCallingHandlers(...) 4. │ ├─base::as.matrix(...) 5. │ └─proxyC::simil(...) 6. │ └─proxyC:::proxy(...) 7. │ └─base::stop("proxyC.threads must be an integer") 8. └─base::.handleSimpleError(...) 9. └─base (local) h(simpleError(msg, call)) ── Error ('test-simil.R:80:5'): test simple matching similarity ──────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─global test_simil(mat_test, "simple matching", margin = 1) at test-simil.R:80:5 2. │ ├─base::suppressWarnings(...) 3. │ │ └─base::withCallingHandlers(...) 4. │ ├─base::as.matrix(...) 5. │ └─proxyC::simil(...) 6. │ └─proxyC:::proxy(...) 7. │ └─base::stop("proxyC.threads must be an integer") 8. └─base::.handleSimpleError(...) 9. └─base (local) h(simpleError(msg, call)) ── Error ('test-simil.R:86:5'): test hamanm similarity ───────────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─global test_simil(mat_test, "hamman", margin = 1) at test-simil.R:86:5 2. │ ├─base::suppressWarnings(...) 3. │ │ └─base::withCallingHandlers(...) 4. │ ├─base::as.matrix(...) 5. │ └─proxyC::simil(...) 6. │ └─proxyC:::proxy(...) 7. │ └─base::stop("proxyC.threads must be an integer") 8. └─base::.handleSimpleError(...) 9. └─base (local) h(simpleError(msg, call)) ── Error ('test-simil.R:92:5'): test faith similarity ────────────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─global test_simil(mat_test, "faith", margin = 1, ignore_upper = TRUE) at test-simil.R:92:5 2. │ ├─base::suppressWarnings(...) 3. │ │ └─base::withCallingHandlers(...) 4. │ ├─base::as.matrix(...) 5. │ └─proxyC::simil(...) 6. │ └─proxyC:::proxy(...) 7. │ └─base::stop("proxyC.threads must be an integer") 8. └─base::.handleSimpleError(...) 9. └─base (local) h(simpleError(msg, call)) ── Error ('test-simil.R:104:5'): use_nan is working ──────────────────────────── Error in `proxy(x, y, margin, method, min_proxy = min_simil, rank = rank, drop0 = drop0, diag = diag, use_nan = use_nan, digits = digits)`: proxyC.threads must be an integer Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-simil.R:104:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─proxyC::simil(mat1, mat2, method = "correlation") 7. └─proxyC:::proxy(...) ── Error ('test-simil.R:170:5'): simil returns zero or NaN correctly ─────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': proxyC.threads must be an integer Backtrace: ▆ 1. ├─testthat::expect_equivalent(...) at test-simil.R:170:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::suppressWarnings(...) 5. │ └─base::withCallingHandlers(...) 6. ├─base::as.matrix(...) 7. ├─proxyC::simil(mat, method = "cosine", margin = 1) 8. │ └─proxyC:::proxy(...) 9. │ └─base::stop("proxyC.threads must be an integer") 10. └─base::.handleSimpleError(...) 11. └─base (local) h(simpleError(msg, call)) [ FAIL 12 | WARN 0 | SKIP 0 | PASS 184 ] Error: Test failures Execution halted