R Under development (unstable) (2025-12-15 r89175 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(toxdrc) > > test_check("toxdrc") Conc mean_response TestID Test_Number Dye Type Replicate 1 0 28172.00 83167_Spiked_A 83167 aB Spiked A 2 100 6078.00 83167_Spiked_A 83167 aB Spiked A 3 13.17 25863.00 83167_Spiked_A 83167 aB Spiked A 4 19.75 24786.67 83167_Spiked_A 83167 aB Spiked A 5 29.63 20539.00 83167_Spiked_A 83167 aB Spiked A 6 44.44 15360.00 83167_Spiked_A 83167 aB Spiked A 7 66.67 13501.33 83167_Spiked_A 83167 aB Spiked A 8 Blank 5271.50 83167_Spiked_A 83167 aB Spiked A 9 Control 30473.50 83167_Spiked_A 83167 aB Spiked A blank_mean blank_sd blank_cv 1 5271.5 41.7193 0.7914123 [1] "Test effect does not exceed threshold" [1] "Test effect does not exceed threshold" [1] "Test effect exceeds threshold" [1] "Test effect exceeds threshold" Conc CV CVflag 1 0 3.0370553 2 100 0.7878460 3 13.17 2.6640711 4 19.75 2.2200142 5 29.63 7.4171991 6 44.44 3.9609506 7 66.67 84.5484329 * 8 Blank 0.7914123 9 Control 11.0799051 Conc CV CVflag 1 0 3.0370553 2 100 0.7878460 3 13.17 2.6640711 4 19.75 2.2200142 5 29.63 7.4171991 6 44.44 3.9609506 7 66.67 7.3628481 8 Blank 0.7914123 9 Control 11.0799051 Estimated effective doses Estimate Std. Error Lower Upper e:1:0.5 3370.4 1247.5 1537.8 7386.9 TestID Test_Number Dye Type Replicate 1 83167_Spiked_A 83167 aB Spiked A logLik IC Lack of fit Res var W2.4 -169.2858 348.5716 0.003676801 1645978 LN.4 -169.5880 349.1759 0.003042093 1696475 LL.4 -170.1464 350.2928 0.002141658 1793906 LL.4 -170.1464 350.2928 0.002141658 1793906 W1.4 -170.5786 351.1572 0.001631199 1873138 A 'drc' model. Call: drm(formula = Response ~ Conc, data = ds, fct = model_list[[best_model_name]]) Coefficients: b:(Intercept) c:(Intercept) d:(Intercept) e:(Intercept) -5.446e-01 -3.915e+04 2.826e+04 1.263e+02 A 'drc' model. Call: drm(formula = Response ~ Conc, data = ds, fct = model_list[[best_model_name]]) Coefficients: b:(Intercept) c:(Intercept) d:(Intercept) e:(Intercept) -5.446e-01 -3.915e+04 2.826e+04 1.263e+02 ref_mean ref_sd ref_cv 1 28172 855.5992 3.037055 TestID Test_Number Conc RFU Dye Type Replicate 1 83167_Spiked_A 83167 0 28777 aB Spiked A 2 83167_Spiked_A 83167 0 27567 aB Spiked A 3 83167_Spiked_A 83167 13.17 25176 aB Spiked A 4 83167_Spiked_A 83167 13.17 25859 aB Spiked A 5 83167_Spiked_A 83167 13.17 26554 aB Spiked A 6 83167_Spiked_A 83167 19.75 24620 aB Spiked A 7 83167_Spiked_A 83167 19.75 24339 aB Spiked A 8 83167_Spiked_A 83167 19.75 25401 aB Spiked A 9 83167_Spiked_A 83167 29.63 20219 aB Spiked A 10 83167_Spiked_A 83167 29.63 19201 aB Spiked A 11 83167_Spiked_A 83167 29.63 22197 aB Spiked A 12 83167_Spiked_A 83167 44.44 15184 aB Spiked A 13 83167_Spiked_A 83167 44.44 16037 aB Spiked A 14 83167_Spiked_A 83167 44.44 14859 aB Spiked A 15 83167_Spiked_A 83167 66.67 14170 aB Spiked A 16 83167_Spiked_A 83167 66.67 12359 aB Spiked A 17 83167_Spiked_A 83167 66.67 13975 aB Spiked A 18 83167_Spiked_A 83167 100 6085 aB Spiked A 19 83167_Spiked_A 83167 100 6122 aB Spiked A 20 83167_Spiked_A 83167 100 6027 aB Spiked A 23 83167_Spiked_A 83167 Control 32861 aB Spiked A 24 83167_Spiked_A 83167 Control 28086 aB Spiked A normalized_response 1 1.0214752 2 0.9785248 3 0.8936533 4 0.9178972 5 0.9425671 6 0.8739174 7 0.8639429 8 0.9016399 9 0.7176984 10 0.6815633 11 0.7879100 12 0.5389749 13 0.5692532 14 0.5274386 15 0.5029817 16 0.4386980 17 0.4960599 18 0.2159946 19 0.2173080 20 0.2139358 23 1.1664419 24 0.9969473 p_ctl_mean ref_ctl_mean percent_difference 1 28172 30473.5 7.552464 p_ctl_mean ref_ctl_mean percent_difference 1 15 30473.5 99.95078 [1] "Removed Rows" x y 1 2 30 [ FAIL 0 | WARN 0 | SKIP 0 | PASS 18 ] > > proc.time() user system elapsed 12.06 0.39 12.43