R Under development (unstable) (2023-07-06 r84647 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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. > library("testthat") > library("nnTensor") > library("dcTensor") Attaching package: 'dcTensor' The following object is masked from 'package:nnTensor': toyModel > library("rTensor") > > options(testthat.use_colours = FALSE) > > # Basic usage > test_file("testthat/test_toyModel.R") Warning in .make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) : invalid non-character version specification 'x' (type: double) ══ Testing test_toyModel.R ═════════════════════════════════════════════════════ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 1 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 2 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 3 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 4 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 5 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 6 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 7 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 8 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 9 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 10 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 11 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 12 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 13 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 14 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 15 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 16 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 17 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 18 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 19 ] [ FAIL 0 | WARN 0 | SKIP 0 | PASS 20 ] Done! > test_file("testthat/test_dNMF.R") ══ Testing test_dNMF.R ═════════════════════════════════════════════════════════ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 5 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 6 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 7 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 8 | WARN 0 | SKIP 0 | PASS 0 ] ── Failure ('test_dNMF.R:9:1'): (code run outside of `test_that()`) ──────────── length(out1) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 ── Failure ('test_dNMF.R:10:1'): (code run outside of `test_that()`) ─────────── length(out2) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 ── Failure ('test_dNMF.R:11:1'): (code run outside of `test_that()`) ─────────── length(out3) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 ── Failure ('test_dNMF.R:12:1'): (code run outside of `test_that()`) ─────────── length(out4) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 ── Failure ('test_dNMF.R:21:1'): (code run outside of `test_that()`) ─────────── length(out1_M) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 ── Failure ('test_dNMF.R:22:1'): (code run outside of `test_that()`) ─────────── length(out2_M) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 ── Failure ('test_dNMF.R:23:1'): (code run outside of `test_that()`) ─────────── length(out3_M) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 ── Failure ('test_dNMF.R:24:1'): (code run outside of `test_that()`) ─────────── length(out4_M) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 [ FAIL 8 | WARN 0 | SKIP 0 | PASS 0 ] > test_file("testthat/test_dSVD.R") ══ Testing test_dSVD.R ═════════════════════════════════════════════════════════ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ── Failure ('test_dSVD.R:5:1'): (code run outside of `test_that()`) ──────────── length(out) not equivalent to 7. 1/1 mismatches [1] 6 - 7 == -1 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] > test_file("testthat/test_dsiNMF.R") ══ Testing test_dsiNMF.R ═══════════════════════════════════════════════════════ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] ── Failure ('test_dsiNMF.R:8:1'): (code run outside of `test_that()`) ────────── length(out1) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 ── Failure ('test_dsiNMF.R:9:1'): (code run outside of `test_that()`) ────────── length(out2) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 ── Failure ('test_dsiNMF.R:10:1'): (code run outside of `test_that()`) ───────── length(out3) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 ── Failure ('test_dsiNMF.R:11:1'): (code run outside of `test_that()`) ───────── length(out4) not equivalent to 10. 1/1 mismatches [1] 6 - 10 == -4 [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] > test_file("testthat/test_djNMF.R") ══ Testing test_djNMF.R ════════════════════════════════════════════════════════ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] ── Failure ('test_djNMF.R:8:1'): (code run outside of `test_that()`) ─────────── length(out1) not equivalent to 13. 1/1 mismatches [1] 7 - 13 == -6 ── Failure ('test_djNMF.R:9:1'): (code run outside of `test_that()`) ─────────── length(out2) not equivalent to 13. 1/1 mismatches [1] 7 - 13 == -6 ── Failure ('test_djNMF.R:10:1'): (code run outside of `test_that()`) ────────── length(out3) not equivalent to 13. 1/1 mismatches [1] 7 - 13 == -6 ── Failure ('test_djNMF.R:11:1'): (code run outside of `test_that()`) ────────── length(out4) not equivalent to 13. 1/1 mismatches [1] 7 - 13 == -6 [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] > test_file("testthat/test_dPLS.R") ══ Testing test_dPLS.R ═════════════════════════════════════════════════════════ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ── Failure ('test_dPLS.R:5:1'): (code run outside of `test_that()`) ──────────── length(out) not equivalent to 7. 1/1 mismatches [1] 6 - 7 == -1 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] > test_file("testthat/test_dNTF.R") ══ Testing test_dNTF.R ═════════════════════════════════════════════════════════ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] ── Failure ('test_dNTF.R:8:1'): (code run outside of `test_that()`) ──────────── length(out1) not equivalent to 8. 1/1 mismatches [1] 6 - 8 == -2 ── Failure ('test_dNTF.R:9:1'): (code run outside of `test_that()`) ──────────── length(out2) not equivalent to 8. 1/1 mismatches [1] 6 - 8 == -2 ── Failure ('test_dNTF.R:10:1'): (code run outside of `test_that()`) ─────────── length(out3) not equivalent to 8. 1/1 mismatches [1] 6 - 8 == -2 ── Failure ('test_dNTF.R:11:1'): (code run outside of `test_that()`) ─────────── length(out4) not equivalent to 8. 1/1 mismatches [1] 6 - 8 == -2 [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] > test_file("testthat/test_dNTD.R") ══ Testing test_dNTD.R ═════════════════════════════════════════════════════════ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ] [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] ── Failure ('test_dNTD.R:8:1'): (code run outside of `test_that()`) ──────────── length(out1) not equivalent to 8. 1/1 mismatches [1] 6 - 8 == -2 ── Failure ('test_dNTD.R:9:1'): (code run outside of `test_that()`) ──────────── length(out2) not equivalent to 8. 1/1 mismatches [1] 6 - 8 == -2 ── Failure ('test_dNTD.R:10:1'): (code run outside of `test_that()`) ─────────── length(out3) not equivalent to 8. 1/1 mismatches [1] 6 - 8 == -2 ── Failure ('test_dNTD.R:11:1'): (code run outside of `test_that()`) ─────────── length(out4) not equivalent to 8. 1/1 mismatches [1] 6 - 8 == -2 [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] > > # # Mask matrix/tensor for imputation > # test_file("testthat/test_mask_dNMF.R") > # test_file("testthat/test_mask_dSVD.R") > # test_file("testthat/test_mask_dsiNMF.R") > # test_file("testthat/test_mask_djNMF.R") > # test_file("testthat/test_mask_dPLS.R") > # test_file("testthat/test_mask_dNTF.R") > # test_file("testthat/test_mask_dNTD.R") > > # # NA avoidance > # test_file("testthat/test_NA_dNMF.R") > # test_file("testthat/test_NA_dSVD.R") > # test_file("testthat/test_NA_dsiNMF.R") > # test_file("testthat/test_NA_djNMF.R") > # test_file("testthat/test_NA_dPLS.R") > # test_file("testthat/test_NA_dNTF.R") > # test_file("testthat/test_NA_dNTD.R") > > # # Initialization > # test_file("testthat/test_init_dNMF.R") > # test_file("testthat/test_init_dSVD.R") > # test_file("testthat/test_init_dsiNMF.R") > # test_file("testthat/test_init_djNMF.R") > # test_file("testthat/test_init_dPLS.R") > # test_file("testthat/test_init_dNTF.R") > # test_file("testthat/test_init_dNTD.R") > > # # Fix options for transfer learning > # test_file("testthat/test_fix_dNMF.R") > # test_file("testthat/test_fix_dSVD.R") > # test_file("testthat/test_fix_dsiNMF.R") > # test_file("testthat/test_fix_djNMF.R") > # test_file("testthat/test_fix_dPLS.R") > # test_file("testthat/test_fix_dNTF.R") > # test_file("testthat/test_fix_dNTD.R") > > proc.time() user system elapsed 57.09 19.12 76.46