CRAN Package Check Results for Package ThermalSampleR

Last updated on 2024-01-11 05:53:54 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.1 6.84 149.69 156.53 OK
r-devel-linux-x86_64-debian-gcc 0.1.1 5.70 111.32 117.02 OK
r-devel-linux-x86_64-fedora-clang 0.1.1 188.11 NOTE
r-devel-linux-x86_64-fedora-gcc 0.1.1 190.85 NOTE
r-devel-windows-x86_64 0.1.1 8.00 175.00 183.00 OK
r-patched-linux-x86_64 0.1.1 4.31 143.65 147.96 OK
r-release-linux-x86_64 0.1.1 5.25 144.06 149.31 OK
r-release-macos-arm64 0.1.1 68.00 OK
r-release-macos-x86_64 0.1.1 165.00 OK
r-release-windows-x86_64 0.1.1 9.00 236.00 245.00 ERROR
r-oldrel-macos-arm64 0.1.1 61.00 OK
r-oldrel-windows-x86_64 0.1.1 10.00 250.00 260.00 OK

Additional issues

MKL

Check Details

Version: 0.1.1
Check: dependencies in R code
Result: NOTE Namespaces in Imports field not imported from: ‘MASS’ ‘base’ ‘graphics’ ‘janitor’ ‘rlang’ ‘testthat’ ‘utils’ All declared Imports should be used. Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.1.1
Check: tests
Result: ERROR Running 'test_boot_one.R' [16s] Running 'test_boot_two.R' [20s] Running 'test_equiv_tost.R' [104s] Running 'test_plot_one_group.R' [9s] Running 'test_plot_two_groups.R' [14s] Running the tests in 'tests/test_boot_one.R' failed. Complete output: > library(ThermalSampleR) > library(testthat) > # run test_file("test_ThermalSampleR.R") to test everything in this R file > > coreid = ThermalSampleR::coreid_data > > ############################################################################################ > # BOOT_ONE and PLOT_ONE_GROUP TESTS > ############################################################################################ > > ######################################## > # Test for general errors: boot_one > ######################################## > > bt_one = boot_one(data=coreid, groups_col=col, + groups_which="Catorhintha schaffneri_APM", + n_max=49, iter=15, response=response) > > testthat::test_that("No error is thrown in boot_one function", { + + # Call the function and check for errors + testthat::expect_no_error(boot_one(data=coreid, groups_col=col, + groups_which="Catorhintha schaffneri_APM", + n_max=49, iter=15, response=response)) + }) Test passed 😀 > > ################################################## > # Test: user puts in the incorrect groups_col > ################################################## > > testthat::test_that("Error is thrown in boot_one function", { + + # Call the function and check for errors + testthat::expect_error(boot_one(data=coreid, groups_col="Catorhintha schaffneri_APM", + groups_which="Catorhintha schaffneri_APM", + n_max=49, iter=15, response=response)) + }) Test passed 🌈 > > ######################################## > # check that the col column consists of names > ######################################## > > testthat::test_that("Incorrect columns in data", { + + testthat::expect_type(coreid$col, "character") + }) Test passed 🥳 > > ######################################## > # check that the response column contains integers > ######################################## > > testthat::test_that("Incorrect columns in data", { + + testthat::expect_type(coreid$response, "integer") + }) Test passed 🎉 > > ######################################## > # Test for the class of bt_one output > ######################################## > testthat::test_that("boot_one output is the list class", { + + testthat::expect_type(bt_one, "list") + testthat::expect_type(bt_one$mean_low_ci[1], "double") + testthat::expect_equal(ncol(bt_one), 14) + }) Test passed 😸 > > ######################################## > # Test for NA values in bt_one > ######################################## > > bt_one_buggy = bt_one > bt_one_buggy$mean_low_ci[1] = NA > > testthat::test_that("No NA values in the dataframe", { + testthat::expect_false(any(is.na(bt_one)), info = "The dataframe contains NA values.") + }) ── Failure: No NA values in the dataframe ────────────────────────────────────── any(is.na(bt_one)) is not FALSE `actual`: TRUE `expected`: FALSE The dataframe contains NA values. Error: Test failed Execution halted Flavor: r-release-windows-x86_64