R Under development (unstable) (2024-10-09 r87215 ucrt) -- "Unsuffered Consequences" 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. > # 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) > > testthat::test_check("TAD") Loading required package: TAD Starting 2 test processes [ FAIL 2 | WARN 1 | SKIP 0 | PASS 100 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-tad_analysis_get_weighted_mnts.R:8:3'): Stats per random dataframes works ── `weighted_moments` (`actual`) not identical to datasets$good2$results$weighted_moments (`expected`). actual$skewness | expected$skewness [63] 0.04289098658976072 | 0.04289098658976072 [63] [64] -0.43522815475347920 | -0.43522815475347920 [64] [65] -0.59803696156483510 | -0.59803696156483510 [65] [66] -0.80161615857171009 - -0.80161615857170998 [66] [67] 0.16587424767944589 | 0.16587424767944589 [67] [68] -0.47364831234905586 | -0.47364831234905586 [68] [69] -0.68818893347382915 | -0.68818893347382915 [69] actual$skewness | expected$skewness [134] -0.70616418979290896 | -0.70616418979290896 [134] [135] 0.18167504757408809 | 0.18167504757408809 [135] [136] 0.44999655247169656 | 0.44999655247169656 [136] [137] -1.45247402477013265 - -1.45247402477013288 [137] [138] 0.41715674980749340 | 0.41715674980749340 [138] [139] 0.62031960005389686 | 0.62031960005389686 [139] [140] 0.85449604643129684 | 0.85449604643129684 [140] actual$skewness | expected$skewness [1119] -0.03181494035233438 | -0.03181494035233438 [1119] [1120] 0.00975198583644703 | 0.00975198583644703 [1120] [1121] 1.06622258682253368 | 1.06622258682253368 [1121] [1122] 0.46925734346874259 - 0.46925734346874265 [1122] [1123] -0.13163934305542177 | -0.13163934305542177 [1123] [1124] -0.02985937012713765 | -0.02985937012713765 [1124] [1125] -0.16980549320926203 | -0.16980549320926203 [1125] actual$skewness | expected$skewness [1665] -0.18411685465148075 | -0.18411685465148075 [1665] [1666] 1.45859884351357683 | 1.45859884351357683 [1666] [1667] 0.85677109806435969 | 0.85677109806435969 [1667] [1668] -0.31178183757933464 - -0.31178183757933459 [1668] [1669] 0.72893506481358439 | 0.72893506481358439 [1669] [1670] -0.56194872864097045 | -0.56194872864097045 [1670] [1671] -0.85929043222772594 | -0.85929043222772594 [1671] actual$kurtosis | expected$kurtosis [85] 3.5548386034186539 | 3.5548386034186539 [85] [86] 2.7071176279412010 | 2.7071176279412010 [86] [87] 2.7017123395381089 | 2.7017123395381089 [87] [88] 1.8861391903315843 - 1.8861391903315845 [88] [89] 2.9912762537458595 | 2.9912762537458595 [89] [90] 3.3387030075649413 | 3.3387030075649413 [90] [91] 3.1176984652152790 | 3.1176984652152790 [91] actual$kurtosis | expected$kurtosis [695] 1.4750989946865152 | 1.4750989946865152 [695] [696] 2.6968997409893185 | 2.6968997409893185 [696] [697] 3.3387835563369341 | 3.3387835563369341 [697] [698] 6.8144507911803718 - 6.8144507911803709 [698] [699] 2.5663872106716443 | 2.5663872106716443 [699] [700] 3.0713792964120499 | 3.0713792964120499 [700] [701] 3.4504242174946058 | 3.4504242174946058 [701] actual$kurtosis | expected$kurtosis [897] 1.7008701414706817 | 1.7008701414706817 [897] [898] 3.0378201875943085 | 3.0378201875943085 [898] [899] 2.6417369702351725 | 2.6417369702351725 [899] [900] 2.1513912216316649 - 2.1513912216316653 [900] [901] 3.6817644388605335 | 3.6817644388605335 [901] [902] 2.1100856117755864 | 2.1100856117755864 [902] [903] 3.7720449015574116 | 3.7720449015574116 [903] actual$distance_law | expected$distance_law [85] 1.2175048662327974 | 1.2175048662327974 [85] [86] 0.4848848171773619 | 0.4848848171773619 [86] [87] 0.8259608216169665 | 0.8259608216169665 [87] [88] -0.0292397428093636 - -0.0292397428093634 [88] [89] 0.8166659717993769 | 0.8166659717993769 [89] [90] 0.8717079603981834 | 0.8717079603981834 [90] [91] 1.1636376132625865 | 1.1636376132625865 [91] actual$distance_law | expected$distance_law [134] 1.8613328304077323 | 1.8613328304077323 [134] [135] -0.2680143410393421 | -0.2680143410393421 [135] [136] 0.1929864475989893 | 0.1929864475989893 [136] [137] 0.9672825428280625 - 0.9672825428280616 [137] [138] 1.6549433034584720 | 1.6549433034584720 [138] [139] 0.2619654157169471 | 0.2619654157169471 [139] [140] 0.5091197968012273 | 0.5091197968012273 [140] actual$distance_law | expected$distance_law [695] -0.3849122354071970 | -0.3849122354071970 [695] [696] 0.5900789721453092 | 0.5900789721453092 [696] [697] 1.3667482807940934 | 1.3667482807940934 [697] [698] 4.8425382124202700 - 4.8425382124202692 [698] [699] 0.6819399594824029 | 0.6819399594824029 [699] [700] 0.7842067037169085 | 0.7842067037169085 [700] [701] 1.5888396672551752 | 1.5888396672551752 [701] actual$distance_law | expected$distance_law [897] -0.1591677660318598 | -0.1591677660318598 [897] [898] 1.1762345030299604 | 1.1762345030299604 [898] [899] 0.2891129719599101 | 0.2891129719599101 [899] [900] 0.1232649388582532 - 0.1232649388582536 [900] [901] 1.5728120306993483 | 1.5728120306993483 [901] [902] -0.0643713261088630 | -0.0643713261088630 [902] [903] 0.9436962925956798 | 0.9436962925956798 [903] actual$distance_law | expected$distance_law [1665] 2.4467005259148493 | 2.4467005259148493 [1665] [1666] 0.9513032811842441 | 0.9513032811842441 [1666] [1667] 0.2705439236935985 | 0.2705439236935985 [1667] [1668] 0.4231705683884304 - 0.4231705683884306 [1668] [1669] 0.7163777987923652 | 0.7163777987923652 [1669] [1670] 2.5255652513213920 | 2.5255652513213920 [1670] [1671] 1.4368256115923761 | 1.4368256115923761 [1671] ── Error ('test-utilities.R:102:3'): Saving and loading abundance works ──────── Error in `file(file, ifelse(append, "a", "w"), encoding = fileEncoding)`: cannot open the connection Backtrace: ▆ 1. └─TAD:::save_abundance_dataframe(path = "/tmp/ab.csv", object = abd_df) at test-utilities.R:102:3 2. └─TAD:::save_depending_on_format(file = path, ABUNDANCE_DF_NAME) 3. └─utils::write.table(...) 4. └─base::file(file, ifelse(append, "a", "w"), encoding = fileEncoding) [ FAIL 2 | WARN 1 | SKIP 0 | PASS 100 ] Error: Test failures Execution halted