R Under development (unstable) (2025-05-10 r88193 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(snazzieR) Attaching package: 'snazzieR' The following object is masked from 'package:datasets': Orange > > test_check("snazzieR") Table: X Weights (W) -------- ------- -0.9046 0.4262 0.4262 0.9046 -------- ------- Table: X Loadings (P) --------- -------- -11.1592 4.9469 6.2246 10.5002 --------- -------- Table: Y Weights (C) -------- ------- -0.7350 0.5400 -0.6781 0.8417 -------- ------- Table: Y Loadings (Q) -------- ------- -0.7350 0.5400 -0.6781 0.8417 -------- ------- Table: Regression Scalars (b) Component Estimate ---------- --------- 1 15.4445 2 1.2032 Table: Regression Coefficients (Original Scale) Petal.Length Petal.Width ------------- ------------- ------------ Sepal.Length 1.7756 0.7233 Sepal.Width -1.3386 -0.4787 Table: X Scores (T) -------- -------- 0.0977 0.0388 0.0764 -0.0578 0.1089 -0.0334 0.1098 -0.0558 0.1139 0.0511 0.1026 0.1233 0.1328 -0.0039 0.0986 0.0164 0.1116 -0.1005 0.0841 -0.0405 0.0873 0.0887 0.1157 0.0063 0.0850 -0.0629 0.1279 -0.0883 0.0760 0.1609 0.1153 0.2250 0.1026 0.1233 0.0977 0.0388 0.0692 0.1212 0.1207 0.0907 0.0643 0.0368 0.1130 0.0734 0.1482 0.0307 0.0823 0.0042 0.1157 0.0063 0.0679 -0.0528 0.0986 0.0164 0.0891 0.0439 0.0814 0.0266 0.1089 -0.0334 0.0927 -0.0456 0.0643 0.0368 0.1351 0.1477 0.1171 0.1803 0.0841 -0.0405 0.0832 -0.0182 0.0634 0.0592 0.1225 0.0460 0.1193 -0.0832 0.0900 0.0215 0.1062 0.0338 0.0570 -0.1993 0.1346 -0.0486 0.1062 0.0338 0.1207 0.0907 0.0850 -0.0629 0.1207 0.0907 0.1175 -0.0385 0.0959 0.0836 0.0909 -0.0009 -0.0882 0.0834 -0.0368 0.0530 -0.0873 0.0611 -0.0287 -0.1485 -0.0760 -0.0112 -0.0075 -0.0518 -0.0205 0.0652 0.0304 -0.1617 -0.0769 0.0112 0.0277 -0.0945 -0.0088 -0.2258 -0.0093 -0.0070 -0.0792 -0.1404 -0.0341 -0.0142 0.0088 -0.0396 -0.0701 0.0509 0.0165 -0.0223 -0.0237 -0.0640 -0.0963 -0.1302 -0.0219 -0.1088 0.0061 0.0276 -0.0417 -0.0315 -0.0819 -0.0732 -0.0417 -0.0315 -0.0598 0.0011 -0.0692 0.0285 -0.1017 0.0041 -0.0778 0.0336 -0.0255 -0.0193 -0.0228 -0.0864 -0.0210 -0.1312 -0.0210 -0.1312 -0.0237 -0.0640 -0.0408 -0.0539 0.0336 -0.0324 0.0129 0.0672 -0.0701 0.0509 -0.0972 -0.1078 0.0165 -0.0223 -0.0133 -0.1139 -0.0057 -0.0966 -0.0264 0.0031 -0.0314 -0.0813 0.0142 -0.1739 -0.0066 -0.0742 0.0079 -0.0172 0.0002 -0.0345 -0.0426 -0.0091 0.0210 -0.1342 -0.0075 -0.0518 -0.0205 0.0652 -0.0237 -0.0640 -0.1121 0.0539 -0.0512 -0.0040 -0.0607 0.0234 -0.1549 0.0793 0.0381 -0.1444 -0.1369 0.0468 -0.1162 -0.0529 -0.0746 0.1628 -0.0453 0.0580 -0.0751 -0.0335 -0.0864 0.0387 -0.0305 -0.1037 -0.0160 -0.0467 -0.0368 0.0530 -0.0607 0.0234 -0.1021 0.2228 -0.1942 0.0152 -0.0792 -0.1404 -0.0796 0.0784 0.0011 -0.0569 -0.1789 0.0498 -0.0665 -0.0386 -0.0548 0.0855 -0.1053 0.0936 -0.0503 -0.0264 -0.0264 0.0031 -0.0674 -0.0162 -0.1207 0.0590 -0.1531 0.0346 -0.1193 0.2330 -0.0674 -0.0162 -0.0589 -0.0213 -0.0571 -0.0661 -0.1635 0.0844 -0.0129 0.0825 -0.0444 0.0357 -0.0178 -0.0020 -0.0873 0.0611 -0.0701 0.0509 -0.0873 0.0611 -0.0237 -0.0640 -0.0710 0.0733 -0.0548 0.0855 -0.0778 0.0336 -0.0819 -0.0732 -0.0607 0.0234 -0.0043 0.0774 -0.0093 -0.0070 -------- -------- Table: Y Scores (U) -------- -------- 1.8708 -0.3654 1.8708 -0.6824 1.9124 -0.2276 1.8291 -0.1530 1.8708 -0.1227 1.5679 0.0215 1.7818 0.2708 1.8291 -0.3213 1.8708 -0.1567 1.9181 -0.6476 1.8291 -0.4897 1.7875 -0.0346 1.9597 -0.6647 2.0846 -0.1162 1.9540 -0.7499 1.6512 0.1493 1.7345 -0.1008 1.7818 -0.2550 1.6569 -0.5877 1.7402 0.1195 1.7458 -0.7724 1.6512 0.1153 2.0373 0.2672 1.4790 -0.1716 1.6626 0.0572 1.7875 -0.7493 1.6096 -0.0699 1.8291 -0.4629 1.8708 -0.6081 1.7875 -0.1358 1.7875 -0.3785 1.6512 -0.6128 1.9181 0.1145 1.8708 -0.0753 1.8291 -0.5372 1.9540 -0.6424 1.9124 -0.9082 1.9597 -0.1050 1.9124 -0.0726 1.8291 -0.4494 1.8234 -0.1575 1.8234 -0.8927 1.9124 0.1566 1.4317 0.2655 1.4847 0.3523 1.7818 -0.4439 1.7875 0.0397 1.8708 -0.0689 1.8291 -0.3617 1.8708 -0.4666 -0.5707 -0.8081 -0.5764 0.0096 -0.7429 -0.6230 -0.1903 -0.2432 -0.6180 -0.5464 -0.3985 0.2267 -0.7486 0.4239 0.3680 0.0944 -0.4401 -0.7807 -0.2376 0.6793 0.2847 -0.4310 -0.4515 0.3289 0.0766 -1.3295 -0.5707 0.0007 -0.0238 0.1941 -0.4458 -0.6303 -0.5764 0.8049 0.0349 -0.4696 -0.5764 -0.8805 0.0292 -0.3935 -0.9682 1.0730 -0.1903 -0.4385 -0.7429 -0.5424 -0.3928 -0.3348 -0.3152 -0.6163 -0.4458 -0.6168 -0.6124 -0.9798 -0.9625 -0.2301 -0.5764 0.1780 0.2847 -0.6397 0.0709 -0.4106 0.2015 -0.5516 -0.0597 -0.3099 -0.9152 0.2427 -0.5764 1.0610 -0.6654 0.8615 -0.6597 -0.4281 -0.3569 -1.1454 -0.2319 0.4617 -0.1903 -0.0140 -0.2679 0.1126 -0.5291 0.0847 -0.1014 -0.3940 0.3680 -0.1483 -0.2736 0.1484 -0.1846 0.2538 -0.2736 0.2496 -0.3152 -0.3602 0.4040 -0.0284 -0.2319 0.1044 -2.0905 1.8153 -1.1820 0.8301 -1.6931 -0.0254 -1.3013 0.4615 -1.7404 0.8229 -1.9845 -0.4516 -0.7543 1.3491 -1.5927 -0.6050 -1.3845 -0.4481 -2.1322 1.0372 -1.2710 0.6172 -1.2653 0.1229 -1.5265 0.2365 -1.2294 0.8087 -1.6268 1.4968 -1.6212 1.1377 -1.2596 0.2894 -2.1151 0.4784 -2.2873 -0.7255 -0.7846 -0.4715 -1.7877 0.6197 -1.1877 1.2501 -1.9372 -0.8887 -1.0098 0.0181 -1.6098 0.7696 -1.4678 -0.2248 -0.9682 0.2302 -1.0098 0.6182 -1.5681 0.5501 -1.2066 -0.7361 -1.5984 -0.7985 -1.8123 -0.0904 -1.6571 0.6605 -0.8262 -0.1373 -0.9454 -0.0679 -1.9542 -0.5118 -1.8350 1.6972 -1.2596 0.5321 -0.9682 0.7156 -1.4849 0.1924 -1.8350 0.8410 -1.5379 0.3215 -1.1820 0.8301 -1.8710 0.8089 -1.9656 1.2113 -1.5795 0.4936 -1.1404 -0.0701 -1.3126 0.4185 -1.6628 1.6537 -1.0931 0.9355 -------- -------- Table: Variance Explained by Components (X) Latent.Vector Explained.Variance Cumulative -------------- ------------------- ----------- 1 54.7898% 54.7898% 2 45.2102% 100.0000% Table: Variance Explained by Components (Y) Latent.Vector Explained.Variance Cumulative -------------- ------------------- ----------- 1 80.0449% 80.0449% 2 0.4858% 80.5307% Table: X Weights (W) -------- -------- -0.9046 -0.4262 0.4262 -0.9046 -------- -------- Table: X Loadings (P) --------- --------- -11.1592 -4.9469 6.2246 -10.5002 --------- --------- Table: Y Weights (C) -------- -------- -0.7350 -0.5400 -0.6781 -0.8417 -------- -------- Table: Y Loadings (Q) -------- -------- -0.7350 -0.5400 -0.6781 -0.8417 -------- -------- Table: Regression Scalars (b) Component Estimate ---------- --------- 1 15.4445 2 1.2032 Table: Regression Coefficients (Original Scale) Petal.Length Petal.Width ------------- ------------- ------------ Sepal.Length 1.7756 0.7233 Sepal.Width -1.3386 -0.4787 Table: X Scores (T) -------- -------- 0.0977 -0.0388 0.0764 0.0578 0.1089 0.0334 0.1098 0.0558 0.1139 -0.0511 0.1026 -0.1233 0.1328 0.0039 0.0986 -0.0164 0.1116 0.1005 0.0841 0.0405 0.0873 -0.0887 0.1157 -0.0063 0.0850 0.0629 0.1279 0.0883 0.0760 -0.1609 0.1153 -0.2250 0.1026 -0.1233 0.0977 -0.0388 0.0692 -0.1212 0.1207 -0.0907 0.0643 -0.0368 0.1130 -0.0734 0.1482 -0.0307 0.0823 -0.0042 0.1157 -0.0063 0.0679 0.0528 0.0986 -0.0164 0.0891 -0.0439 0.0814 -0.0266 0.1089 0.0334 0.0927 0.0456 0.0643 -0.0368 0.1351 -0.1477 0.1171 -0.1803 0.0841 0.0405 0.0832 0.0182 0.0634 -0.0592 0.1225 -0.0460 0.1193 0.0832 0.0900 -0.0215 0.1062 -0.0338 0.0570 0.1993 0.1346 0.0486 0.1062 -0.0338 0.1207 -0.0907 0.0850 0.0629 0.1207 -0.0907 0.1175 0.0385 0.0959 -0.0836 0.0909 0.0009 -0.0882 -0.0834 -0.0368 -0.0530 -0.0873 -0.0611 -0.0287 0.1485 -0.0760 0.0112 -0.0075 0.0518 -0.0205 -0.0652 0.0304 0.1617 -0.0769 -0.0112 0.0277 0.0945 -0.0088 0.2258 -0.0093 0.0070 -0.0792 0.1404 -0.0341 0.0142 0.0088 0.0396 -0.0701 -0.0509 0.0165 0.0223 -0.0237 0.0640 -0.0963 0.1302 -0.0219 0.1088 0.0061 -0.0276 -0.0417 0.0315 -0.0819 0.0732 -0.0417 0.0315 -0.0598 -0.0011 -0.0692 -0.0285 -0.1017 -0.0041 -0.0778 -0.0336 -0.0255 0.0193 -0.0228 0.0864 -0.0210 0.1312 -0.0210 0.1312 -0.0237 0.0640 -0.0408 0.0539 0.0336 0.0324 0.0129 -0.0672 -0.0701 -0.0509 -0.0972 0.1078 0.0165 0.0223 -0.0133 0.1139 -0.0057 0.0966 -0.0264 -0.0031 -0.0314 0.0813 0.0142 0.1739 -0.0066 0.0742 0.0079 0.0172 0.0002 0.0345 -0.0426 0.0091 0.0210 0.1342 -0.0075 0.0518 -0.0205 -0.0652 -0.0237 0.0640 -0.1121 -0.0539 -0.0512 0.0040 -0.0607 -0.0234 -0.1549 -0.0793 0.0381 0.1444 -0.1369 -0.0468 -0.1162 0.0529 -0.0746 -0.1628 -0.0453 -0.0580 -0.0751 0.0335 -0.0864 -0.0387 -0.0305 0.1037 -0.0160 0.0467 -0.0368 -0.0530 -0.0607 -0.0234 -0.1021 -0.2228 -0.1942 -0.0152 -0.0792 0.1404 -0.0796 -0.0784 0.0011 0.0569 -0.1789 -0.0498 -0.0665 0.0386 -0.0548 -0.0855 -0.1053 -0.0936 -0.0503 0.0264 -0.0264 -0.0031 -0.0674 0.0162 -0.1207 -0.0590 -0.1531 -0.0346 -0.1193 -0.2330 -0.0674 0.0162 -0.0589 0.0213 -0.0571 0.0661 -0.1635 -0.0844 -0.0129 -0.0825 -0.0444 -0.0357 -0.0178 0.0020 -0.0873 -0.0611 -0.0701 -0.0509 -0.0873 -0.0611 -0.0237 0.0640 -0.0710 -0.0733 -0.0548 -0.0855 -0.0778 -0.0336 -0.0819 0.0732 -0.0607 -0.0234 -0.0043 -0.0774 -0.0093 0.0070 -------- -------- Table: Y Scores (U) -------- -------- 1.8708 0.3654 1.8708 0.6824 1.9124 0.2276 1.8291 0.1530 1.8708 0.1227 1.5679 -0.0215 1.7818 -0.2708 1.8291 0.3213 1.8708 0.1567 1.9181 0.6476 1.8291 0.4897 1.7875 0.0346 1.9597 0.6647 2.0846 0.1162 1.9540 0.7499 1.6512 -0.1493 1.7345 0.1008 1.7818 0.2550 1.6569 0.5877 1.7402 -0.1195 1.7458 0.7724 1.6512 -0.1153 2.0373 -0.2672 1.4790 0.1716 1.6626 -0.0572 1.7875 0.7493 1.6096 0.0699 1.8291 0.4629 1.8708 0.6081 1.7875 0.1358 1.7875 0.3785 1.6512 0.6128 1.9181 -0.1145 1.8708 0.0753 1.8291 0.5372 1.9540 0.6424 1.9124 0.9082 1.9597 0.1050 1.9124 0.0726 1.8291 0.4494 1.8234 0.1575 1.8234 0.8927 1.9124 -0.1566 1.4317 -0.2655 1.4847 -0.3523 1.7818 0.4439 1.7875 -0.0397 1.8708 0.0689 1.8291 0.3617 1.8708 0.4666 -0.5707 0.8081 -0.5764 -0.0096 -0.7429 0.6230 -0.1903 0.2432 -0.6180 0.5464 -0.3985 -0.2267 -0.7486 -0.4239 0.3680 -0.0944 -0.4401 0.7807 -0.2376 -0.6793 0.2847 0.4310 -0.4515 -0.3289 0.0766 1.3295 -0.5707 -0.0007 -0.0238 -0.1941 -0.4458 0.6303 -0.5764 -0.8049 0.0349 0.4696 -0.5764 0.8805 0.0292 0.3935 -0.9682 -1.0730 -0.1903 0.4385 -0.7429 0.5424 -0.3928 0.3348 -0.3152 0.6163 -0.4458 0.6168 -0.6124 0.9798 -0.9625 0.2301 -0.5764 -0.1780 0.2847 0.6397 0.0709 0.4106 0.2015 0.5516 -0.0597 0.3099 -0.9152 -0.2427 -0.5764 -1.0610 -0.6654 -0.8615 -0.6597 0.4281 -0.3569 1.1454 -0.2319 -0.4617 -0.1903 0.0140 -0.2679 -0.1126 -0.5291 -0.0847 -0.1014 0.3940 0.3680 0.1483 -0.2736 -0.1484 -0.1846 -0.2538 -0.2736 -0.2496 -0.3152 0.3602 0.4040 0.0284 -0.2319 -0.1044 -2.0905 -1.8153 -1.1820 -0.8301 -1.6931 0.0254 -1.3013 -0.4615 -1.7404 -0.8229 -1.9845 0.4516 -0.7543 -1.3491 -1.5927 0.6050 -1.3845 0.4481 -2.1322 -1.0372 -1.2710 -0.6172 -1.2653 -0.1229 -1.5265 -0.2365 -1.2294 -0.8087 -1.6268 -1.4968 -1.6212 -1.1377 -1.2596 -0.2894 -2.1151 -0.4784 -2.2873 0.7255 -0.7846 0.4715 -1.7877 -0.6197 -1.1877 -1.2501 -1.9372 0.8887 -1.0098 -0.0181 -1.6098 -0.7696 -1.4678 0.2248 -0.9682 -0.2302 -1.0098 -0.6182 -1.5681 -0.5501 -1.2066 0.7361 -1.5984 0.7985 -1.8123 0.0904 -1.6571 -0.6605 -0.8262 0.1373 -0.9454 0.0679 -1.9542 0.5118 -1.8350 -1.6972 -1.2596 -0.5321 -0.9682 -0.7156 -1.4849 -0.1924 -1.8350 -0.8410 -1.5379 -0.3215 -1.1820 -0.8301 -1.8710 -0.8089 -1.9656 -1.2113 -1.5795 -0.4936 -1.1404 0.0701 -1.3126 -0.4185 -1.6628 -1.6537 -1.0931 -0.9355 -------- -------- Table: Variance Explained by Components (X) Latent.Vector Explained.Variance Cumulative -------------- ------------------- ----------- 1 54.7898% 54.7898% 2 45.2102% 100.0000% Table: Variance Explained by Components (Y) Latent.Vector Explained.Variance Cumulative -------------- ------------------- ----------- 1 80.0449% 80.0449% 2 0.4858% 80.5307% [ FAIL 0 | WARN 0 | SKIP 0 | PASS 22 ] > > proc.time() user system elapsed 0.92 0.26 1.17