0s autopkgtest [12:36:27]: starting date and time: 2024-03-23 12:36:27+0000 0s autopkgtest [12:36:27]: git checkout: 4a1cd702 l/adt_testbed: don't blame the testbed for unsolvable build deps 0s autopkgtest [12:36:27]: host juju-7f2275-prod-proposed-migration-environment-3; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.mt6tcqu_/out --timeout-copy=6000 -a i386 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --setup-commands /home/ubuntu/autopkgtest/setup-commands/setup-testbed --apt-pocket=proposed=src:r-base --apt-upgrade r-cran-pracma --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=r-base/4.3.3-2build1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-3@lcy02-11.secgroup --name adt-noble-i386-r-cran-pracma-20240323-123627-juju-7f2275-prod-proposed-migration-environment-3 --image adt/ubuntu-noble-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-3 --net-id=net_prod-proposed-migration -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 471s autopkgtest [12:44:18]: testbed dpkg architecture: amd64 471s autopkgtest [12:44:18]: testbed apt version: 2.7.12 471s autopkgtest [12:44:18]: test architecture: i386 471s autopkgtest [12:44:18]: @@@@@@@@@@@@@@@@@@@@ test bed setup 472s Get:1 http://ftpmaster.internal/ubuntu noble-proposed InRelease [117 kB] 472s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main Sources [494 kB] 472s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/multiverse Sources [56.9 kB] 472s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/restricted Sources [6540 B] 472s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/universe Sources [3975 kB] 472s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main amd64 Packages [686 kB] 472s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main i386 Packages [451 kB] 472s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main amd64 c-n-f Metadata [3508 B] 472s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/restricted amd64 Packages [30.5 kB] 472s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/restricted i386 Packages [6700 B] 472s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/restricted amd64 c-n-f Metadata [116 B] 472s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/universe amd64 Packages [4399 kB] 472s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/universe i386 Packages [1296 kB] 472s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/universe amd64 c-n-f Metadata [9396 B] 472s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/multiverse i386 Packages [27.1 kB] 472s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/multiverse amd64 Packages [96.1 kB] 472s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/multiverse amd64 c-n-f Metadata [196 B] 475s Fetched 11.7 MB in 1s (7937 kB/s) 475s Reading package lists... 477s Reading package lists... 477s Building dependency tree... 477s Reading state information... 478s Calculating upgrade... 478s The following packages will be upgraded: 478s libc-bin libc6 locales 478s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 478s Need to get 8176 kB of archives. 478s After this operation, 2048 B of additional disk space will be used. 478s Get:1 http://ftpmaster.internal/ubuntu noble/main amd64 libc6 amd64 2.39-0ubuntu6 [3262 kB] 478s Get:2 http://ftpmaster.internal/ubuntu noble/main amd64 libc-bin amd64 2.39-0ubuntu6 [682 kB] 478s Get:3 http://ftpmaster.internal/ubuntu noble/main amd64 locales all 2.39-0ubuntu6 [4232 kB] 478s Preconfiguring packages ... 479s Fetched 8176 kB in 0s (77.2 MB/s) 479s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 71864 files and directories currently installed.) 479s Preparing to unpack .../libc6_2.39-0ubuntu6_amd64.deb ... 479s Unpacking libc6:amd64 (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 479s Setting up libc6:amd64 (2.39-0ubuntu6) ... 480s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 71864 files and directories currently installed.) 480s Preparing to unpack .../libc-bin_2.39-0ubuntu6_amd64.deb ... 480s Unpacking libc-bin (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 480s Setting up libc-bin (2.39-0ubuntu6) ... 480s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 71864 files and directories currently installed.) 480s Preparing to unpack .../locales_2.39-0ubuntu6_all.deb ... 480s Unpacking locales (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 480s Setting up locales (2.39-0ubuntu6) ... 481s Generating locales (this might take a while)... 482s en_US.UTF-8... done 482s Generation complete. 482s Processing triggers for man-db (2.12.0-3) ... 484s Reading package lists... 484s Building dependency tree... 484s Reading state information... 484s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 485s sh: Attempting to set up Debian/Ubuntu apt sources automatically 485s sh: Distribution appears to be Ubuntu 486s Reading package lists... 486s Building dependency tree... 486s Reading state information... 486s eatmydata is already the newest version (131-1). 486s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 486s Reading package lists... 487s Building dependency tree... 487s Reading state information... 487s dbus is already the newest version (1.14.10-4ubuntu1). 487s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 487s Reading package lists... 487s Building dependency tree... 487s Reading state information... 488s rng-tools-debian is already the newest version (2.4). 488s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 488s Reading package lists... 488s Building dependency tree... 488s Reading state information... 488s The following packages will be REMOVED: 488s cloud-init* python3-configobj* python3-debconf* 489s 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded. 489s After this operation, 3256 kB disk space will be freed. 489s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 71864 files and directories currently installed.) 489s Removing cloud-init (24.1.2-0ubuntu1) ... 489s Removing python3-configobj (5.0.8-3) ... 489s Removing python3-debconf (1.5.86) ... 489s Processing triggers for man-db (2.12.0-3) ... 490s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 71475 files and directories currently installed.) 490s Purging configuration files for cloud-init (24.1.2-0ubuntu1) ... 490s dpkg: warning: while removing cloud-init, directory '/etc/cloud/cloud.cfg.d' not empty so not removed 490s Processing triggers for rsyslog (8.2312.0-3ubuntu3) ... 490s invoke-rc.d: policy-rc.d denied execution of try-restart. 491s Reading package lists... 491s Building dependency tree... 491s Reading state information... 491s linux-generic is already the newest version (6.8.0-11.11+1). 491s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 491s Hit:1 http://ftpmaster.internal/ubuntu noble InRelease 491s Hit:2 http://ftpmaster.internal/ubuntu noble-updates InRelease 491s Hit:3 http://ftpmaster.internal/ubuntu noble-security InRelease 494s Reading package lists... 494s Reading package lists... 494s Building dependency tree... 494s Reading state information... 494s Calculating upgrade... 494s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 494s Reading package lists... 495s Building dependency tree... 495s Reading state information... 495s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 495s autopkgtest [12:44:42]: rebooting testbed after setup commands that affected boot 636s autopkgtest [12:47:03]: testbed running kernel: Linux 6.8.0-11-generic #11-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 14 00:29:05 UTC 2024 637s autopkgtest [12:47:04]: @@@@@@@@@@@@@@@@@@@@ apt-source r-cran-pracma 638s Get:1 http://ftpmaster.internal/ubuntu noble/universe r-cran-pracma 2.4.4-1 (dsc) [2123 B] 638s Get:2 http://ftpmaster.internal/ubuntu noble/universe r-cran-pracma 2.4.4-1 (tar) [398 kB] 638s Get:3 http://ftpmaster.internal/ubuntu noble/universe r-cran-pracma 2.4.4-1 (diff) [3008 B] 638s gpgv: Signature made Tue Nov 21 15:31:55 2023 UTC 638s gpgv: using RSA key F1F007320A035541F0A663CA578A0494D1C646D1 638s gpgv: issuer "tille@debian.org" 638s gpgv: Can't check signature: No public key 638s dpkg-source: warning: cannot verify inline signature for ./r-cran-pracma_2.4.4-1.dsc: no acceptable signature found 638s autopkgtest [12:47:05]: testing package r-cran-pracma version 2.4.4-1 638s autopkgtest [12:47:05]: build not needed 640s autopkgtest [12:47:07]: test run-unit-test: preparing testbed 643s Note, using file '/tmp/autopkgtest.XpW8mA/1-autopkgtest-satdep.dsc' to get the build dependencies 643s Reading package lists... 643s Building dependency tree... 643s Reading state information... 644s Starting pkgProblemResolver with broken count: 0 644s Starting 2 pkgProblemResolver with broken count: 0 644s Done 644s The following NEW packages will be installed: 644s build-essential cpp cpp-13 cpp-13-x86-64-linux-gnu cpp-x86-64-linux-gnu 644s fontconfig fontconfig-config fonts-dejavu-core fonts-dejavu-mono g++ g++-13 644s g++-13-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-13 644s gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu libasan8 libatomic1 libblas3 644s libc-dev-bin libc6-dev libcairo2 libcc1-0 libcrypt-dev libdatrie1 644s libdeflate0 libfontconfig1 libgcc-13-dev libgfortran5 libgomp1 644s libgraphite2-3 libharfbuzz0b libhwasan0 libice6 libisl23 libitm1 libjbig0 644s libjpeg-turbo8 libjpeg8 liblapack3 liblerc4 liblsan0 libmpc3 libpango-1.0-0 644s libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils libpaper1 libpixman-1-0 644s libquadmath0 libsharpyuv0 libsm6 libstdc++-13-dev libtcl8.6 libthai-data 644s libthai0 libtiff6 libtk8.6 libtsan2 libubsan1 libwebp7 libxcb-render0 644s libxcb-shm0 libxft2 libxrender1 libxss1 libxt6 linux-libc-dev r-base-core 644s r-cran-pracma r-cran-quadprog rpcsvc-proto unzip x11-common xdg-utils zip 644s 0 upgraded, 77 newly installed, 0 to remove and 0 not upgraded. 644s Need to get 106 MB of archives. 644s After this operation, 323 MB of additional disk space will be used. 644s Get:1 http://ftpmaster.internal/ubuntu noble/main amd64 libc-dev-bin amd64 2.39-0ubuntu6 [20.4 kB] 644s Get:2 http://ftpmaster.internal/ubuntu noble/main amd64 linux-libc-dev amd64 6.8.0-11.11 [1595 kB] 644s Get:3 http://ftpmaster.internal/ubuntu noble/main amd64 libcrypt-dev amd64 1:4.4.36-4 [128 kB] 644s Get:4 http://ftpmaster.internal/ubuntu noble/main amd64 rpcsvc-proto amd64 1.4.2-0ubuntu6 [68.5 kB] 644s Get:5 http://ftpmaster.internal/ubuntu noble/main amd64 libc6-dev amd64 2.39-0ubuntu6 [2126 kB] 644s Get:6 http://ftpmaster.internal/ubuntu noble/main amd64 libisl23 amd64 0.26-3 [741 kB] 644s Get:7 http://ftpmaster.internal/ubuntu noble/main amd64 libmpc3 amd64 1.3.1-1 [54.1 kB] 644s Get:8 http://ftpmaster.internal/ubuntu noble/main amd64 cpp-13-x86-64-linux-gnu amd64 13.2.0-17ubuntu2 [11.2 MB] 644s Get:9 http://ftpmaster.internal/ubuntu noble/main amd64 cpp-13 amd64 13.2.0-17ubuntu2 [1030 B] 644s Get:10 http://ftpmaster.internal/ubuntu noble/main amd64 cpp-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [5326 B] 644s Get:11 http://ftpmaster.internal/ubuntu noble/main amd64 cpp amd64 4:13.2.0-7ubuntu1 [22.4 kB] 644s Get:12 http://ftpmaster.internal/ubuntu noble/main amd64 libcc1-0 amd64 14-20240303-1ubuntu1 [47.7 kB] 644s Get:13 http://ftpmaster.internal/ubuntu noble/main amd64 libgomp1 amd64 14-20240303-1ubuntu1 [147 kB] 644s Get:14 http://ftpmaster.internal/ubuntu noble/main amd64 libitm1 amd64 14-20240303-1ubuntu1 [29.1 kB] 644s Get:15 http://ftpmaster.internal/ubuntu noble/main amd64 libatomic1 amd64 14-20240303-1ubuntu1 [10.4 kB] 644s Get:16 http://ftpmaster.internal/ubuntu noble/main amd64 libasan8 amd64 14-20240303-1ubuntu1 [3026 kB] 644s Get:17 http://ftpmaster.internal/ubuntu noble/main amd64 liblsan0 amd64 14-20240303-1ubuntu1 [1310 kB] 645s Get:18 http://ftpmaster.internal/ubuntu noble/main amd64 libtsan2 amd64 14-20240303-1ubuntu1 [2732 kB] 645s Get:19 http://ftpmaster.internal/ubuntu noble/main amd64 libubsan1 amd64 14-20240303-1ubuntu1 [1172 kB] 645s Get:20 http://ftpmaster.internal/ubuntu noble/main amd64 libhwasan0 amd64 14-20240303-1ubuntu1 [1629 kB] 645s Get:21 http://ftpmaster.internal/ubuntu noble/main amd64 libquadmath0 amd64 14-20240303-1ubuntu1 [155 kB] 645s Get:22 http://ftpmaster.internal/ubuntu noble/main amd64 libgcc-13-dev amd64 13.2.0-17ubuntu2 [2687 kB] 645s Get:23 http://ftpmaster.internal/ubuntu noble/main amd64 gcc-13-x86-64-linux-gnu amd64 13.2.0-17ubuntu2 [21.9 MB] 645s Get:24 http://ftpmaster.internal/ubuntu noble/main amd64 gcc-13 amd64 13.2.0-17ubuntu2 [477 kB] 645s Get:25 http://ftpmaster.internal/ubuntu noble/main amd64 gcc-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [1212 B] 645s Get:26 http://ftpmaster.internal/ubuntu noble/main amd64 gcc amd64 4:13.2.0-7ubuntu1 [5018 B] 645s Get:27 http://ftpmaster.internal/ubuntu noble/main amd64 libstdc++-13-dev amd64 13.2.0-17ubuntu2 [2340 kB] 645s Get:28 http://ftpmaster.internal/ubuntu noble/main amd64 g++-13-x86-64-linux-gnu amd64 13.2.0-17ubuntu2 [12.5 MB] 645s Get:29 http://ftpmaster.internal/ubuntu noble/main amd64 g++-13 amd64 13.2.0-17ubuntu2 [14.5 kB] 645s Get:30 http://ftpmaster.internal/ubuntu noble/main amd64 g++-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [964 B] 645s Get:31 http://ftpmaster.internal/ubuntu noble/main amd64 g++ amd64 4:13.2.0-7ubuntu1 [1100 B] 645s Get:32 http://ftpmaster.internal/ubuntu noble/main amd64 build-essential amd64 12.10ubuntu1 [4928 B] 645s Get:33 http://ftpmaster.internal/ubuntu noble/main amd64 fonts-dejavu-mono all 2.37-8 [502 kB] 645s Get:34 http://ftpmaster.internal/ubuntu noble/main amd64 fonts-dejavu-core all 2.37-8 [835 kB] 645s Get:35 http://ftpmaster.internal/ubuntu noble/main amd64 fontconfig-config amd64 2.15.0-1ubuntu1 [36.9 kB] 645s Get:36 http://ftpmaster.internal/ubuntu noble/main amd64 libfontconfig1 amd64 2.15.0-1ubuntu1 [139 kB] 645s Get:37 http://ftpmaster.internal/ubuntu noble/main amd64 fontconfig amd64 2.15.0-1ubuntu1 [180 kB] 645s Get:38 http://ftpmaster.internal/ubuntu noble/main amd64 libblas3 amd64 3.12.0-3 [238 kB] 645s Get:39 http://ftpmaster.internal/ubuntu noble/main amd64 libpixman-1-0 amd64 0.42.2-1 [268 kB] 645s Get:40 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-render0 amd64 1.15-1 [16.3 kB] 645s Get:41 http://ftpmaster.internal/ubuntu noble/main amd64 libxcb-shm0 amd64 1.15-1 [5740 B] 645s Get:42 http://ftpmaster.internal/ubuntu noble/main amd64 libxrender1 amd64 1:0.9.10-1.1 [20.0 kB] 645s Get:43 http://ftpmaster.internal/ubuntu noble/main amd64 libcairo2 amd64 1.18.0-1 [572 kB] 645s Get:44 http://ftpmaster.internal/ubuntu noble/main amd64 libdatrie1 amd64 0.2.13-3 [20.9 kB] 645s Get:45 http://ftpmaster.internal/ubuntu noble/main amd64 libdeflate0 amd64 1.19-1 [43.7 kB] 645s Get:46 http://ftpmaster.internal/ubuntu noble/main amd64 libgfortran5 amd64 14-20240303-1ubuntu1 [924 kB] 645s Get:47 http://ftpmaster.internal/ubuntu noble/main amd64 libgraphite2-3 amd64 1.3.14-2 [83.1 kB] 645s Get:48 http://ftpmaster.internal/ubuntu noble/main amd64 libharfbuzz0b amd64 8.3.0-2 [469 kB] 645s Get:49 http://ftpmaster.internal/ubuntu noble/main amd64 x11-common all 1:7.7+23ubuntu2 [23.4 kB] 645s Get:50 http://ftpmaster.internal/ubuntu noble/main amd64 libice6 amd64 2:1.0.10-1build2 [42.6 kB] 645s Get:51 http://ftpmaster.internal/ubuntu noble/main amd64 libjpeg-turbo8 amd64 2.1.5-2ubuntu1 [147 kB] 645s Get:52 http://ftpmaster.internal/ubuntu noble/main amd64 libjpeg8 amd64 8c-2ubuntu11 [2148 B] 645s Get:53 http://ftpmaster.internal/ubuntu noble/main amd64 liblapack3 amd64 3.12.0-3 [2649 kB] 645s Get:54 http://ftpmaster.internal/ubuntu noble/main amd64 liblerc4 amd64 4.0.0+ds-4ubuntu1 [184 kB] 645s Get:55 http://ftpmaster.internal/ubuntu noble/main amd64 libthai-data all 0.1.29-2 [158 kB] 645s Get:56 http://ftpmaster.internal/ubuntu noble/main amd64 libthai0 amd64 0.1.29-2 [18.8 kB] 645s Get:57 http://ftpmaster.internal/ubuntu noble/main amd64 libpango-1.0-0 amd64 1.51.0+ds-4 [228 kB] 645s Get:58 http://ftpmaster.internal/ubuntu noble/main amd64 libpangoft2-1.0-0 amd64 1.51.0+ds-4 [42.1 kB] 645s Get:59 http://ftpmaster.internal/ubuntu noble/main amd64 libpangocairo-1.0-0 amd64 1.51.0+ds-4 [29.0 kB] 645s Get:60 http://ftpmaster.internal/ubuntu noble/main amd64 libpaper1 amd64 1.1.29 [13.4 kB] 645s Get:61 http://ftpmaster.internal/ubuntu noble/main amd64 libpaper-utils amd64 1.1.29 [8658 B] 645s Get:62 http://ftpmaster.internal/ubuntu noble/main amd64 libsharpyuv0 amd64 1.3.2-0.4 [15.6 kB] 645s Get:63 http://ftpmaster.internal/ubuntu noble/main amd64 libsm6 amd64 2:1.2.3-1build2 [16.7 kB] 645s Get:64 http://ftpmaster.internal/ubuntu noble/main amd64 libtcl8.6 amd64 8.6.13+dfsg-2 [984 kB] 645s Get:65 http://ftpmaster.internal/ubuntu noble/main amd64 libjbig0 amd64 2.1-6.1ubuntu1 [29.3 kB] 645s Get:66 http://ftpmaster.internal/ubuntu noble/main amd64 libwebp7 amd64 1.3.2-0.4 [230 kB] 645s Get:67 http://ftpmaster.internal/ubuntu noble/main amd64 libtiff6 amd64 4.5.1+git230720-3ubuntu1 [232 kB] 645s Get:68 http://ftpmaster.internal/ubuntu noble/main amd64 libxft2 amd64 2.3.6-1 [44.5 kB] 645s Get:69 http://ftpmaster.internal/ubuntu noble/main amd64 libxss1 amd64 1:1.2.3-1build2 [8476 B] 645s Get:70 http://ftpmaster.internal/ubuntu noble/main amd64 libtk8.6 amd64 8.6.14-1 [779 kB] 645s Get:71 http://ftpmaster.internal/ubuntu noble/main amd64 libxt6 amd64 1:1.2.1-1.1 [173 kB] 645s Get:72 http://ftpmaster.internal/ubuntu noble/main amd64 zip amd64 3.0-13 [176 kB] 645s Get:73 http://ftpmaster.internal/ubuntu noble/main amd64 unzip amd64 6.0-28ubuntu3 [174 kB] 645s Get:74 http://ftpmaster.internal/ubuntu noble/main amd64 xdg-utils all 1.1.3-4.1ubuntu3 [62.0 kB] 645s Get:75 http://ftpmaster.internal/ubuntu noble/universe amd64 r-base-core amd64 4.3.2-1build1 [27.0 MB] 645s Get:76 http://ftpmaster.internal/ubuntu noble/universe amd64 r-cran-pracma all 2.4.4-1 [1690 kB] 645s Get:77 http://ftpmaster.internal/ubuntu noble/universe amd64 r-cran-quadprog amd64 1.5-8-1build1 [30.9 kB] 646s Preconfiguring packages ... 646s Fetched 106 MB in 1s (131 MB/s) 646s Selecting previously unselected package libc-dev-bin. 646s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 71420 files and directories currently installed.) 646s Preparing to unpack .../00-libc-dev-bin_2.39-0ubuntu6_amd64.deb ... 646s Unpacking libc-dev-bin (2.39-0ubuntu6) ... 646s Selecting previously unselected package linux-libc-dev:amd64. 646s Preparing to unpack .../01-linux-libc-dev_6.8.0-11.11_amd64.deb ... 646s Unpacking linux-libc-dev:amd64 (6.8.0-11.11) ... 646s Selecting previously unselected package libcrypt-dev:amd64. 646s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.36-4_amd64.deb ... 646s Unpacking libcrypt-dev:amd64 (1:4.4.36-4) ... 646s Selecting previously unselected package rpcsvc-proto. 646s Preparing to unpack .../03-rpcsvc-proto_1.4.2-0ubuntu6_amd64.deb ... 646s Unpacking rpcsvc-proto (1.4.2-0ubuntu6) ... 646s Selecting previously unselected package libc6-dev:amd64. 646s Preparing to unpack .../04-libc6-dev_2.39-0ubuntu6_amd64.deb ... 646s Unpacking libc6-dev:amd64 (2.39-0ubuntu6) ... 646s Selecting previously unselected package libisl23:amd64. 646s Preparing to unpack .../05-libisl23_0.26-3_amd64.deb ... 646s Unpacking libisl23:amd64 (0.26-3) ... 646s Selecting previously unselected package libmpc3:amd64. 646s Preparing to unpack .../06-libmpc3_1.3.1-1_amd64.deb ... 646s Unpacking libmpc3:amd64 (1.3.1-1) ... 647s Selecting previously unselected package cpp-13-x86-64-linux-gnu. 647s Preparing to unpack .../07-cpp-13-x86-64-linux-gnu_13.2.0-17ubuntu2_amd64.deb ... 647s Unpacking cpp-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 647s Selecting previously unselected package cpp-13. 647s Preparing to unpack .../08-cpp-13_13.2.0-17ubuntu2_amd64.deb ... 647s Unpacking cpp-13 (13.2.0-17ubuntu2) ... 647s Selecting previously unselected package cpp-x86-64-linux-gnu. 647s Preparing to unpack .../09-cpp-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 647s Unpacking cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 647s Selecting previously unselected package cpp. 647s Preparing to unpack .../10-cpp_4%3a13.2.0-7ubuntu1_amd64.deb ... 647s Unpacking cpp (4:13.2.0-7ubuntu1) ... 647s Selecting previously unselected package libcc1-0:amd64. 647s Preparing to unpack .../11-libcc1-0_14-20240303-1ubuntu1_amd64.deb ... 647s Unpacking libcc1-0:amd64 (14-20240303-1ubuntu1) ... 647s Selecting previously unselected package libgomp1:amd64. 647s Preparing to unpack .../12-libgomp1_14-20240303-1ubuntu1_amd64.deb ... 647s Unpacking libgomp1:amd64 (14-20240303-1ubuntu1) ... 647s Selecting previously unselected package libitm1:amd64. 647s Preparing to unpack .../13-libitm1_14-20240303-1ubuntu1_amd64.deb ... 647s Unpacking libitm1:amd64 (14-20240303-1ubuntu1) ... 647s Selecting previously unselected package libatomic1:amd64. 647s Preparing to unpack .../14-libatomic1_14-20240303-1ubuntu1_amd64.deb ... 647s Unpacking libatomic1:amd64 (14-20240303-1ubuntu1) ... 647s Selecting previously unselected package libasan8:amd64. 647s Preparing to unpack .../15-libasan8_14-20240303-1ubuntu1_amd64.deb ... 647s Unpacking libasan8:amd64 (14-20240303-1ubuntu1) ... 647s Selecting previously unselected package liblsan0:amd64. 647s Preparing to unpack .../16-liblsan0_14-20240303-1ubuntu1_amd64.deb ... 647s Unpacking liblsan0:amd64 (14-20240303-1ubuntu1) ... 647s Selecting previously unselected package libtsan2:amd64. 647s Preparing to unpack .../17-libtsan2_14-20240303-1ubuntu1_amd64.deb ... 647s Unpacking libtsan2:amd64 (14-20240303-1ubuntu1) ... 647s Selecting previously unselected package libubsan1:amd64. 647s Preparing to unpack .../18-libubsan1_14-20240303-1ubuntu1_amd64.deb ... 647s Unpacking libubsan1:amd64 (14-20240303-1ubuntu1) ... 647s Selecting previously unselected package libhwasan0:amd64. 647s Preparing to unpack .../19-libhwasan0_14-20240303-1ubuntu1_amd64.deb ... 647s Unpacking libhwasan0:amd64 (14-20240303-1ubuntu1) ... 647s Selecting previously unselected package libquadmath0:amd64. 647s Preparing to unpack .../20-libquadmath0_14-20240303-1ubuntu1_amd64.deb ... 647s Unpacking libquadmath0:amd64 (14-20240303-1ubuntu1) ... 647s Selecting previously unselected package libgcc-13-dev:amd64. 647s Preparing to unpack .../21-libgcc-13-dev_13.2.0-17ubuntu2_amd64.deb ... 647s Unpacking libgcc-13-dev:amd64 (13.2.0-17ubuntu2) ... 648s Selecting previously unselected package gcc-13-x86-64-linux-gnu. 648s Preparing to unpack .../22-gcc-13-x86-64-linux-gnu_13.2.0-17ubuntu2_amd64.deb ... 648s Unpacking gcc-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 648s Selecting previously unselected package gcc-13. 648s Preparing to unpack .../23-gcc-13_13.2.0-17ubuntu2_amd64.deb ... 648s Unpacking gcc-13 (13.2.0-17ubuntu2) ... 648s Selecting previously unselected package gcc-x86-64-linux-gnu. 648s Preparing to unpack .../24-gcc-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 648s Unpacking gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 648s Selecting previously unselected package gcc. 648s Preparing to unpack .../25-gcc_4%3a13.2.0-7ubuntu1_amd64.deb ... 648s Unpacking gcc (4:13.2.0-7ubuntu1) ... 648s Selecting previously unselected package libstdc++-13-dev:amd64. 648s Preparing to unpack .../26-libstdc++-13-dev_13.2.0-17ubuntu2_amd64.deb ... 648s Unpacking libstdc++-13-dev:amd64 (13.2.0-17ubuntu2) ... 648s Selecting previously unselected package g++-13-x86-64-linux-gnu. 648s Preparing to unpack .../27-g++-13-x86-64-linux-gnu_13.2.0-17ubuntu2_amd64.deb ... 648s Unpacking g++-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 649s Selecting previously unselected package g++-13. 649s Preparing to unpack .../28-g++-13_13.2.0-17ubuntu2_amd64.deb ... 649s Unpacking g++-13 (13.2.0-17ubuntu2) ... 649s Selecting previously unselected package g++-x86-64-linux-gnu. 649s Preparing to unpack .../29-g++-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 649s Unpacking g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 649s Selecting previously unselected package g++. 649s Preparing to unpack .../30-g++_4%3a13.2.0-7ubuntu1_amd64.deb ... 649s Unpacking g++ (4:13.2.0-7ubuntu1) ... 649s Selecting previously unselected package build-essential. 649s Preparing to unpack .../31-build-essential_12.10ubuntu1_amd64.deb ... 649s Unpacking build-essential (12.10ubuntu1) ... 649s Selecting previously unselected package fonts-dejavu-mono. 649s Preparing to unpack .../32-fonts-dejavu-mono_2.37-8_all.deb ... 649s Unpacking fonts-dejavu-mono (2.37-8) ... 649s Selecting previously unselected package fonts-dejavu-core. 649s Preparing to unpack .../33-fonts-dejavu-core_2.37-8_all.deb ... 649s Unpacking fonts-dejavu-core (2.37-8) ... 649s Selecting previously unselected package fontconfig-config. 649s Preparing to unpack .../34-fontconfig-config_2.15.0-1ubuntu1_amd64.deb ... 649s Unpacking fontconfig-config (2.15.0-1ubuntu1) ... 649s Selecting previously unselected package libfontconfig1:amd64. 649s Preparing to unpack .../35-libfontconfig1_2.15.0-1ubuntu1_amd64.deb ... 649s Unpacking libfontconfig1:amd64 (2.15.0-1ubuntu1) ... 649s Selecting previously unselected package fontconfig. 649s Preparing to unpack .../36-fontconfig_2.15.0-1ubuntu1_amd64.deb ... 649s Unpacking fontconfig (2.15.0-1ubuntu1) ... 649s Selecting previously unselected package libblas3:amd64. 649s Preparing to unpack .../37-libblas3_3.12.0-3_amd64.deb ... 649s Unpacking libblas3:amd64 (3.12.0-3) ... 649s Selecting previously unselected package libpixman-1-0:amd64. 649s Preparing to unpack .../38-libpixman-1-0_0.42.2-1_amd64.deb ... 649s Unpacking libpixman-1-0:amd64 (0.42.2-1) ... 649s Selecting previously unselected package libxcb-render0:amd64. 649s Preparing to unpack .../39-libxcb-render0_1.15-1_amd64.deb ... 649s Unpacking libxcb-render0:amd64 (1.15-1) ... 649s Selecting previously unselected package libxcb-shm0:amd64. 649s Preparing to unpack .../40-libxcb-shm0_1.15-1_amd64.deb ... 649s Unpacking libxcb-shm0:amd64 (1.15-1) ... 649s Selecting previously unselected package libxrender1:amd64. 649s Preparing to unpack .../41-libxrender1_1%3a0.9.10-1.1_amd64.deb ... 649s Unpacking libxrender1:amd64 (1:0.9.10-1.1) ... 649s Selecting previously unselected package libcairo2:amd64. 649s Preparing to unpack .../42-libcairo2_1.18.0-1_amd64.deb ... 649s Unpacking libcairo2:amd64 (1.18.0-1) ... 649s Selecting previously unselected package libdatrie1:amd64. 649s Preparing to unpack .../43-libdatrie1_0.2.13-3_amd64.deb ... 649s Unpacking libdatrie1:amd64 (0.2.13-3) ... 649s Selecting previously unselected package libdeflate0:amd64. 649s Preparing to unpack .../44-libdeflate0_1.19-1_amd64.deb ... 649s Unpacking libdeflate0:amd64 (1.19-1) ... 649s Selecting previously unselected package libgfortran5:amd64. 649s Preparing to unpack .../45-libgfortran5_14-20240303-1ubuntu1_amd64.deb ... 649s Unpacking libgfortran5:amd64 (14-20240303-1ubuntu1) ... 650s Selecting previously unselected package libgraphite2-3:amd64. 650s Preparing to unpack .../46-libgraphite2-3_1.3.14-2_amd64.deb ... 650s Unpacking libgraphite2-3:amd64 (1.3.14-2) ... 650s Selecting previously unselected package libharfbuzz0b:amd64. 650s Preparing to unpack .../47-libharfbuzz0b_8.3.0-2_amd64.deb ... 650s Unpacking libharfbuzz0b:amd64 (8.3.0-2) ... 650s Selecting previously unselected package x11-common. 650s Preparing to unpack .../48-x11-common_1%3a7.7+23ubuntu2_all.deb ... 650s Unpacking x11-common (1:7.7+23ubuntu2) ... 650s Selecting previously unselected package libice6:amd64. 650s Preparing to unpack .../49-libice6_2%3a1.0.10-1build2_amd64.deb ... 650s Unpacking libice6:amd64 (2:1.0.10-1build2) ... 650s Selecting previously unselected package libjpeg-turbo8:amd64. 650s Preparing to unpack .../50-libjpeg-turbo8_2.1.5-2ubuntu1_amd64.deb ... 650s Unpacking libjpeg-turbo8:amd64 (2.1.5-2ubuntu1) ... 650s Selecting previously unselected package libjpeg8:amd64. 650s Preparing to unpack .../51-libjpeg8_8c-2ubuntu11_amd64.deb ... 650s Unpacking libjpeg8:amd64 (8c-2ubuntu11) ... 650s Selecting previously unselected package liblapack3:amd64. 650s Preparing to unpack .../52-liblapack3_3.12.0-3_amd64.deb ... 650s Unpacking liblapack3:amd64 (3.12.0-3) ... 650s Selecting previously unselected package liblerc4:amd64. 650s Preparing to unpack .../53-liblerc4_4.0.0+ds-4ubuntu1_amd64.deb ... 650s Unpacking liblerc4:amd64 (4.0.0+ds-4ubuntu1) ... 650s Selecting previously unselected package libthai-data. 650s Preparing to unpack .../54-libthai-data_0.1.29-2_all.deb ... 650s Unpacking libthai-data (0.1.29-2) ... 650s Selecting previously unselected package libthai0:amd64. 650s Preparing to unpack .../55-libthai0_0.1.29-2_amd64.deb ... 650s Unpacking libthai0:amd64 (0.1.29-2) ... 650s Selecting previously unselected package libpango-1.0-0:amd64. 650s Preparing to unpack .../56-libpango-1.0-0_1.51.0+ds-4_amd64.deb ... 650s Unpacking libpango-1.0-0:amd64 (1.51.0+ds-4) ... 650s Selecting previously unselected package libpangoft2-1.0-0:amd64. 650s Preparing to unpack .../57-libpangoft2-1.0-0_1.51.0+ds-4_amd64.deb ... 650s Unpacking libpangoft2-1.0-0:amd64 (1.51.0+ds-4) ... 650s Selecting previously unselected package libpangocairo-1.0-0:amd64. 650s Preparing to unpack .../58-libpangocairo-1.0-0_1.51.0+ds-4_amd64.deb ... 650s Unpacking libpangocairo-1.0-0:amd64 (1.51.0+ds-4) ... 650s Selecting previously unselected package libpaper1:amd64. 650s Preparing to unpack .../59-libpaper1_1.1.29_amd64.deb ... 650s Unpacking libpaper1:amd64 (1.1.29) ... 650s Selecting previously unselected package libpaper-utils. 650s Preparing to unpack .../60-libpaper-utils_1.1.29_amd64.deb ... 650s Unpacking libpaper-utils (1.1.29) ... 650s Selecting previously unselected package libsharpyuv0:amd64. 650s Preparing to unpack .../61-libsharpyuv0_1.3.2-0.4_amd64.deb ... 650s Unpacking libsharpyuv0:amd64 (1.3.2-0.4) ... 650s Selecting previously unselected package libsm6:amd64. 650s Preparing to unpack .../62-libsm6_2%3a1.2.3-1build2_amd64.deb ... 650s Unpacking libsm6:amd64 (2:1.2.3-1build2) ... 650s Selecting previously unselected package libtcl8.6:amd64. 650s Preparing to unpack .../63-libtcl8.6_8.6.13+dfsg-2_amd64.deb ... 650s Unpacking libtcl8.6:amd64 (8.6.13+dfsg-2) ... 650s Selecting previously unselected package libjbig0:amd64. 650s Preparing to unpack .../64-libjbig0_2.1-6.1ubuntu1_amd64.deb ... 650s Unpacking libjbig0:amd64 (2.1-6.1ubuntu1) ... 650s Selecting previously unselected package libwebp7:amd64. 650s Preparing to unpack .../65-libwebp7_1.3.2-0.4_amd64.deb ... 650s Unpacking libwebp7:amd64 (1.3.2-0.4) ... 650s Selecting previously unselected package libtiff6:amd64. 650s Preparing to unpack .../66-libtiff6_4.5.1+git230720-3ubuntu1_amd64.deb ... 650s Unpacking libtiff6:amd64 (4.5.1+git230720-3ubuntu1) ... 650s Selecting previously unselected package libxft2:amd64. 650s Preparing to unpack .../67-libxft2_2.3.6-1_amd64.deb ... 650s Unpacking libxft2:amd64 (2.3.6-1) ... 650s Selecting previously unselected package libxss1:amd64. 650s Preparing to unpack .../68-libxss1_1%3a1.2.3-1build2_amd64.deb ... 650s Unpacking libxss1:amd64 (1:1.2.3-1build2) ... 650s Selecting previously unselected package libtk8.6:amd64. 650s Preparing to unpack .../69-libtk8.6_8.6.14-1_amd64.deb ... 650s Unpacking libtk8.6:amd64 (8.6.14-1) ... 650s Selecting previously unselected package libxt6:amd64. 650s Preparing to unpack .../70-libxt6_1%3a1.2.1-1.1_amd64.deb ... 650s Unpacking libxt6:amd64 (1:1.2.1-1.1) ... 650s Selecting previously unselected package zip. 650s Preparing to unpack .../71-zip_3.0-13_amd64.deb ... 650s Unpacking zip (3.0-13) ... 650s Selecting previously unselected package unzip. 650s Preparing to unpack .../72-unzip_6.0-28ubuntu3_amd64.deb ... 650s Unpacking unzip (6.0-28ubuntu3) ... 650s Selecting previously unselected package xdg-utils. 650s Preparing to unpack .../73-xdg-utils_1.1.3-4.1ubuntu3_all.deb ... 650s Unpacking xdg-utils (1.1.3-4.1ubuntu3) ... 650s Selecting previously unselected package r-base-core. 650s Preparing to unpack .../74-r-base-core_4.3.2-1build1_amd64.deb ... 650s Unpacking r-base-core (4.3.2-1build1) ... 651s Selecting previously unselected package r-cran-pracma. 651s Preparing to unpack .../75-r-cran-pracma_2.4.4-1_all.deb ... 651s Unpacking r-cran-pracma (2.4.4-1) ... 651s Selecting previously unselected package r-cran-quadprog. 651s Preparing to unpack .../76-r-cran-quadprog_1.5-8-1build1_amd64.deb ... 651s Unpacking r-cran-quadprog (1.5-8-1build1) ... 651s Setting up libgraphite2-3:amd64 (1.3.14-2) ... 651s Setting up libpixman-1-0:amd64 (0.42.2-1) ... 651s Setting up libsharpyuv0:amd64 (1.3.2-0.4) ... 651s Setting up libpaper1:amd64 (1.1.29) ... 651s 651s Creating config file /etc/papersize with new version 651s Setting up liblerc4:amd64 (4.0.0+ds-4ubuntu1) ... 651s Setting up libxrender1:amd64 (1:0.9.10-1.1) ... 651s Setting up libdatrie1:amd64 (0.2.13-3) ... 651s Setting up libxcb-render0:amd64 (1.15-1) ... 651s Setting up unzip (6.0-28ubuntu3) ... 651s Setting up x11-common (1:7.7+23ubuntu2) ... 652s Setting up libdeflate0:amd64 (1.19-1) ... 652s Setting up linux-libc-dev:amd64 (6.8.0-11.11) ... 652s Setting up libxcb-shm0:amd64 (1.15-1) ... 652s Setting up libpaper-utils (1.1.29) ... 652s Setting up libgomp1:amd64 (14-20240303-1ubuntu1) ... 652s Setting up libjbig0:amd64 (2.1-6.1ubuntu1) ... 652s Setting up zip (3.0-13) ... 652s Setting up libblas3:amd64 (3.12.0-3) ... 652s update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode 652s Setting up rpcsvc-proto (1.4.2-0ubuntu6) ... 652s Setting up libquadmath0:amd64 (14-20240303-1ubuntu1) ... 652s Setting up fonts-dejavu-mono (2.37-8) ... 652s Setting up libmpc3:amd64 (1.3.1-1) ... 652s Setting up libatomic1:amd64 (14-20240303-1ubuntu1) ... 652s Setting up libtcl8.6:amd64 (8.6.13+dfsg-2) ... 652s Setting up fonts-dejavu-core (2.37-8) ... 652s Setting up libjpeg-turbo8:amd64 (2.1.5-2ubuntu1) ... 652s Setting up libgfortran5:amd64 (14-20240303-1ubuntu1) ... 652s Setting up libwebp7:amd64 (1.3.2-0.4) ... 652s Setting up libubsan1:amd64 (14-20240303-1ubuntu1) ... 652s Setting up libhwasan0:amd64 (14-20240303-1ubuntu1) ... 652s Setting up libcrypt-dev:amd64 (1:4.4.36-4) ... 652s Setting up libasan8:amd64 (14-20240303-1ubuntu1) ... 652s Setting up libharfbuzz0b:amd64 (8.3.0-2) ... 652s Setting up libthai-data (0.1.29-2) ... 652s Setting up libxss1:amd64 (1:1.2.3-1build2) ... 652s Setting up libtsan2:amd64 (14-20240303-1ubuntu1) ... 652s Setting up libisl23:amd64 (0.26-3) ... 652s Setting up libc-dev-bin (2.39-0ubuntu6) ... 652s Setting up xdg-utils (1.1.3-4.1ubuntu3) ... 652s update-alternatives: using /usr/bin/xdg-open to provide /usr/bin/open (open) in auto mode 652s Setting up libcc1-0:amd64 (14-20240303-1ubuntu1) ... 652s Setting up liblsan0:amd64 (14-20240303-1ubuntu1) ... 652s Setting up libitm1:amd64 (14-20240303-1ubuntu1) ... 652s Setting up libjpeg8:amd64 (8c-2ubuntu11) ... 652s Setting up libice6:amd64 (2:1.0.10-1build2) ... 652s Setting up liblapack3:amd64 (3.12.0-3) ... 652s update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode 652s Setting up cpp-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 652s Setting up fontconfig-config (2.15.0-1ubuntu1) ... 652s Setting up libthai0:amd64 (0.1.29-2) ... 652s Setting up libgcc-13-dev:amd64 (13.2.0-17ubuntu2) ... 652s Setting up libtiff6:amd64 (4.5.1+git230720-3ubuntu1) ... 652s Setting up libc6-dev:amd64 (2.39-0ubuntu6) ... 652s Setting up libfontconfig1:amd64 (2.15.0-1ubuntu1) ... 652s Setting up libsm6:amd64 (2:1.2.3-1build2) ... 652s Setting up libstdc++-13-dev:amd64 (13.2.0-17ubuntu2) ... 652s Setting up cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 652s Setting up fontconfig (2.15.0-1ubuntu1) ... 654s Regenerating fonts cache... done. 654s Setting up libxft2:amd64 (2.3.6-1) ... 654s Setting up cpp-13 (13.2.0-17ubuntu2) ... 654s Setting up gcc-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 654s Setting up libtk8.6:amd64 (8.6.14-1) ... 654s Setting up libpango-1.0-0:amd64 (1.51.0+ds-4) ... 654s Setting up libcairo2:amd64 (1.18.0-1) ... 654s Setting up gcc-13 (13.2.0-17ubuntu2) ... 654s Setting up libxt6:amd64 (1:1.2.1-1.1) ... 654s Setting up cpp (4:13.2.0-7ubuntu1) ... 654s Setting up libpangoft2-1.0-0:amd64 (1.51.0+ds-4) ... 654s Setting up libpangocairo-1.0-0:amd64 (1.51.0+ds-4) ... 654s Setting up g++-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 654s Setting up gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 654s Setting up gcc (4:13.2.0-7ubuntu1) ... 654s Setting up r-base-core (4.3.2-1build1) ... 654s 654s Creating config file /etc/R/Renviron with new version 654s Setting up g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 654s Setting up r-cran-quadprog (1.5-8-1build1) ... 654s Setting up g++-13 (13.2.0-17ubuntu2) ... 654s Setting up r-cran-pracma (2.4.4-1) ... 654s Setting up g++ (4:13.2.0-7ubuntu1) ... 654s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 654s Setting up build-essential (12.10ubuntu1) ... 654s Processing triggers for libc-bin (2.39-0ubuntu6) ... 654s Processing triggers for man-db (2.12.0-3) ... 656s Processing triggers for install-info (7.1-3) ... 657s Reading package lists... 658s Building dependency tree... 658s Reading state information... 658s Starting pkgProblemResolver with broken count: 0 658s Starting 2 pkgProblemResolver with broken count: 0 658s Done 658s The following NEW packages will be installed: 658s autopkgtest-satdep 658s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 658s Need to get 0 B/696 B of archives. 658s After this operation, 0 B of additional disk space will be used. 658s Get:1 /tmp/autopkgtest.XpW8mA/2-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [696 B] 659s Selecting previously unselected package autopkgtest-satdep. 659s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 76467 files and directories currently installed.) 659s Preparing to unpack .../2-autopkgtest-satdep.deb ... 659s Unpacking autopkgtest-satdep (0) ... 659s Setting up autopkgtest-satdep (0) ... 660s (Reading database ... 76467 files and directories currently installed.) 660s Removing autopkgtest-satdep (0) ... 661s autopkgtest [12:47:28]: test run-unit-test: [----------------------- 661s BEGIN TEST blkdiag.R 661s 661s R version 4.3.2 (2023-10-31) -- "Eye Holes" 661s Copyright (C) 2023 The R Foundation for Statistical Computing 661s Platform: x86_64-pc-linux-gnu (64-bit) 661s 661s R is free software and comes with ABSOLUTELY NO WARRANTY. 661s You are welcome to redistribute it under certain conditions. 661s Type 'license()' or 'licence()' for distribution details. 661s 661s R is a collaborative project with many contributors. 661s Type 'contributors()' for more information and 661s 'citation()' on how to cite R or R packages in publications. 661s 661s Type 'demo()' for some demos, 'help()' for on-line help, or 661s 'help.start()' for an HTML browser interface to help. 661s Type 'q()' to quit R. 661s 661s > ## 661s > ## r e p m a t . R Test Suite 661s > ## 661s > 661s > repmat <- pracma::repmat 661s > Reshape <- pracma::Reshape 661s > 661s > v <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) 661s > a <- matrix(v, 3, 4) 661s > identical(Reshape(a, 4, 3), matrix(v, 4, 3)) 661s [1] TRUE 661s > 661s > identical(repmat(matrix(1:4, 2, 2), 3), 661s + matrix(rep(c(rep(c(1,2), 3), rep(c(3, 4), 3)), 3), nrow=6, ncol=6)) 661s [1] TRUE 661s > 661s BEGIN TEST ceil.R 661s 661s R version 4.3.2 (2023-10-31) -- "Eye Holes" 661s Copyright (C) 2023 The R Foundation for Statistical Computing 661s Platform: x86_64-pc-linux-gnu (64-bit) 661s 661s R is free software and comes with ABSOLUTELY NO WARRANTY. 661s You are welcome to redistribute it under certain conditions. 661s Type 'license()' or 'licence()' for distribution details. 661s 661s R is a collaborative project with many contributors. 661s Type 'contributors()' for more information and 661s 'citation()' on how to cite R or R packages in publications. 661s 661s Type 'demo()' for some demos, 'help()' for on-line help, or 661s 'help.start()' for an HTML browser interface to help. 661s Type 'q()' to quit R. 661s 661s > ## 661s > ## c e i l . R tests 661s > ## 661s > 661s > ceil <- pracma::ceil 661s > Fix <- pracma::Fix 661s > 661s > identical(ceil(0), 0) 661s [1] TRUE 661s > identical(ceil(-1), -1) 661s [1] TRUE 661s > identical(ceil(-1.5), -1) 661s [1] TRUE 661s > identical(ceil(1), 1) 661s [1] TRUE 661s > identical(ceil(1.5), 2) 661s [1] TRUE 661s > 661s > identical(Fix(0), 0) 661s [1] TRUE 661s > identical(Fix(-1), -1) 661s [1] TRUE 661s > identical(Fix(-1.5), -1) 661s [1] TRUE 661s > identical(Fix(1), 1) 661s [1] TRUE 661s > identical(Fix(1.5), 1) 661s [1] TRUE 661s > 661s BEGIN TEST chebyshev.R 661s 661s R version 4.3.2 (2023-10-31) -- "Eye Holes" 661s Copyright (C) 2023 The R Foundation for Statistical Computing 661s Platform: x86_64-pc-linux-gnu (64-bit) 661s 661s R is free software and comes with ABSOLUTELY NO WARRANTY. 661s You are welcome to redistribute it under certain conditions. 661s Type 'license()' or 'licence()' for distribution details. 661s 661s R is a collaborative project with many contributors. 661s Type 'contributors()' for more information and 661s 'citation()' on how to cite R or R packages in publications. 661s 661s Type 'demo()' for some demos, 'help()' for on-line help, or 661s 'help.start()' for an HTML browser interface to help. 661s Type 'q()' to quit R. 661s 661s > ## 661s > ## c h e b P o l y . R Test suite 661s > ## 661s > 661s > 661s > chebPoly <- pracma::chebPoly 661s > chebCoeff <- pracma::chebCoeff 661s > chebApprox <- pracma::chebApprox 661s > 661s > identical(chebPoly(6), 661s + matrix( c(0, 0, 0, 0, 0, 0, 1, 661s + 0, 0, 0, 0, 0, 1, 0, 661s + 0, 0, 0, 0, 2, 0, -1, 661s + 0, 0, 0, 4, 0, -3, 0, 661s + 0, 0, 8, 0, -8, 0, 1, 661s + 0, 16, 0, -20, 0, 5, 0, 661s + 32, 0, -48, 0, 18, 0, -1), 661s + nrow = 7, ncol = 7, byrow=TRUE)) 661s [1] TRUE 661s > 661s > f <- function(x) 1 + x/1 + x^2/2 + x^3/6 + x^4/24 + x^5/120 + x^6/720 661s > cC <- chebCoeff(f, -1, 1, 6) 661s > cC[1] <- cC[1]/2 661s > all.equal(cC, 661s + c(1.26606, 1.13021, 0.27148, 0.04427, 0.00547, 0.00052, 0.00004), 661s + tol = 1e-5) 661s [1] TRUE 661s > 661s > x <- seq(-1, 1, length.out=7) 661s > y <- chebApprox(x, function(x) x^2, -1, 1, 6) 661s > all.equal(x^2, y, tol = 1e-7) 661s [1] TRUE 661s > 661s BEGIN TEST combs.R 661s 661s R version 4.3.2 (2023-10-31) -- "Eye Holes" 661s Copyright (C) 2023 The R Foundation for Statistical Computing 661s Platform: x86_64-pc-linux-gnu (64-bit) 661s 661s R is free software and comes with ABSOLUTELY NO WARRANTY. 661s You are welcome to redistribute it under certain conditions. 661s Type 'license()' or 'licence()' for distribution details. 661s 661s R is a collaborative project with many contributors. 661s Type 'contributors()' for more information and 661s 'citation()' on how to cite R or R packages in publications. 661s 661s Type 'demo()' for some demos, 'help()' for on-line help, or 661s 'help.start()' for an HTML browser interface to help. 661s Type 'q()' to quit R. 661s 662s > ## 662s > ## c o m b s . R Test Suite 662s > ## 662s > 662s > combs <- pracma::combs 662s > randcomb <- pracma::randcomb 662s > 662s > identical(combs(2, 1), 2) 662s [1] TRUE 662s > identical(combs(c(1, 2, 3), 2), matrix(rep(c(1, 2, 3), each = 2), 3, 2)) 662s [1] TRUE 662s > identical(nrow(combs(1:6, 4)), 15L) 662s [1] TRUE 662s > 662s > all(c(1,2,3) %in% randcomb(c(1,2,3), 3)) 662s [1] TRUE 662s > 662s BEGIN TEST compan.R 662s 662s R version 4.3.2 (2023-10-31) -- "Eye Holes" 662s Copyright (C) 2023 The R Foundation for Statistical Computing 662s Platform: x86_64-pc-linux-gnu (64-bit) 662s 662s R is free software and comes with ABSOLUTELY NO WARRANTY. 662s You are welcome to redistribute it under certain conditions. 662s Type 'license()' or 'licence()' for distribution details. 662s 662s R is a collaborative project with many contributors. 662s Type 'contributors()' for more information and 662s 'citation()' on how to cite R or R packages in publications. 662s 662s Type 'demo()' for some demos, 'help()' for on-line help, or 662s 'help.start()' for an HTML browser interface to help. 662s Type 'q()' to quit R. 662s 662s > ### 662s > ### compan.R +++ Test suite +++ 662s > ### 662s > 662s > 662s > test.compan <- function(input, expected) { 662s + output <- do.call(getFromNamespace("compan", "pracma"), input) 662s + identical(output, expected) 662s + } 662s > 662s > compan.expected.empty <- c() 662s > compan.expected.sngl1 <- c() 662s > compan.expected.sngl2 <- c() 662s > compan.expected.bspl1 <- matrix(c(0, 7, -6, 1, 0, 0, 0, 1, 0), 662s + nrow=3, ncol=3, byrow=TRUE) 662s > 662s > test.compan(list(p=c()), compan.expected.empty) 662s [1] TRUE 662s > test.compan(list(p=c(0)), compan.expected.sngl1) 662s [1] TRUE 662s > test.compan(list(p=c(1)), compan.expected.sngl2) 662s [1] TRUE 662s > test.compan(list(p=c(1,0,-7,6)), compan.expected.bspl1) 662s [1] TRUE 662s > 662s BEGIN TEST cond.R 662s 662s R version 4.3.2 (2023-10-31) -- "Eye Holes" 662s Copyright (C) 2023 The R Foundation for Statistical Computing 662s Platform: x86_64-pc-linux-gnu (64-bit) 662s 662s R is free software and comes with ABSOLUTELY NO WARRANTY. 662s You are welcome to redistribute it under certain conditions. 662s Type 'license()' or 'licence()' for distribution details. 662s 662s R is a collaborative project with many contributors. 662s Type 'contributors()' for more information and 662s 'citation()' on how to cite R or R packages in publications. 662s 662s Type 'demo()' for some demos, 'help()' for on-line help, or 662s 'help.start()' for an HTML browser interface to help. 662s Type 'q()' to quit R. 662s 662s > ## 662s > ## c o n d . r Test suite 662s > ## 662s > 662s > 662s > cond <- pracma::cond 662s > normest <- pracma::normest 662s > 662s > hilb <- pracma::hilb 662s > all.equal(c(cond(hilb(1)), cond(hilb(2)), cond(hilb(3)), cond(hilb(4))), 662s + c(1, 19.281470, 524.056778, 15513.738739), 662s + tolerance = 1e-6) 662s [1] TRUE 662s > magic <- pracma::magic 662s > all.equal(normest(magic(5)), max(svd(magic(5))$d)) 662s [1] TRUE 662s > all.equal(normest(pracma::magic(100)), 500050) 662s [1] TRUE 662s > 662s BEGIN TEST conv.R 662s 662s R version 4.3.2 (2023-10-31) -- "Eye Holes" 662s Copyright (C) 2023 The R Foundation for Statistical Computing 662s Platform: x86_64-pc-linux-gnu (64-bit) 662s 662s R is free software and comes with ABSOLUTELY NO WARRANTY. 662s You are welcome to redistribute it under certain conditions. 662s Type 'license()' or 'licence()' for distribution details. 662s 662s R is a collaborative project with many contributors. 662s Type 'contributors()' for more information and 662s 'citation()' on how to cite R or R packages in publications. 662s 662s Type 'demo()' for some demos, 'help()' for on-line help, or 662s 'help.start()' for an HTML browser interface to help. 662s Type 'q()' to quit R. 662s 662s > ## 662s > ## c o n v . r Test suite 662s > ## 662s > 662s > 662s > conv <- pracma::conv 662s > deconv <- pracma::deconv 662s > 662s > all.equal(conv(c(1, 1, 1), 1), c(1, 1, 1)) 662s [1] TRUE 662s > all.equal(conv(c(1, 1, 1), c(0, 0, 1)), c(0, 0, 1, 1, 1)) 662s [1] TRUE 662s > all.equal(conv(c(-0.5, 1, -1), c(0.5, 0, 1)), c(-0.25, 0.5, -1, 1, -1)) 662s [1] TRUE 662s > 662s > b <- c(-0.25, 0.5, -1, 1, -1) 662s > a <- c(0.5, 0, 1) 662s > d <- deconv(b, a) 662s > all.equal(d$q, c(-0.5, 1, -1)) 662s [1] TRUE 662s > all.equal(d$r, c(0, 0)) 662s [1] TRUE 662s > 662s BEGIN TEST cross.R 662s 662s R version 4.3.2 (2023-10-31) -- "Eye Holes" 662s Copyright (C) 2023 The R Foundation for Statistical Computing 662s Platform: x86_64-pc-linux-gnu (64-bit) 662s 662s R is free software and comes with ABSOLUTELY NO WARRANTY. 662s You are welcome to redistribute it under certain conditions. 662s Type 'license()' or 'licence()' for distribution details. 662s 662s R is a collaborative project with many contributors. 662s Type 'contributors()' for more information and 662s 'citation()' on how to cite R or R packages in publications. 662s 662s Type 'demo()' for some demos, 'help()' for on-line help, or 662s 'help.start()' for an HTML browser interface to help. 662s Type 'q()' to quit R. 662s 662s > ### 662s > ### cross.R +++ Test suite +++ 662s > ### 662s > 662s > 662s > test.cross <- function(input, expected) { 662s + output <- do.call(getFromNamespace("cross", "pracma"), input) 662s + identical(output, expected) 662s + } 662s > 662s > cross.expected.1 <- c(-3, 6, -3) 662s > #cross.expected. <- 662s > #cross.expected. <- 662s > #cross.expected. <- 662s > 662s > test.cross(list(x=c(1, 2, 3), y=c(4, 5, 6)), cross.expected.1) 662s [1] TRUE 662s > #test.cross(list(), cross.expected.) 662s > #test.cross(list(), cross.expected.) 662s > #test.cross(list(), cross.expected.) 662s > 662s BEGIN TEST crossn.R 662s 662s R version 4.3.2 (2023-10-31) -- "Eye Holes" 662s Copyright (C) 2023 The R Foundation for Statistical Computing 662s Platform: x86_64-pc-linux-gnu (64-bit) 662s 662s R is free software and comes with ABSOLUTELY NO WARRANTY. 662s You are welcome to redistribute it under certain conditions. 662s Type 'license()' or 'licence()' for distribution details. 662s 662s R is a collaborative project with many contributors. 662s Type 'contributors()' for more information and 662s 'citation()' on how to cite R or R packages in publications. 662s 662s Type 'demo()' for some demos, 'help()' for on-line help, or 662s 'help.start()' for an HTML browser interface to help. 662s Type 'q()' to quit R. 662s 662s > ## 662s > ## c r o s s n . R tests 662s > ## 662s > 662s > crossn <- pracma::crossn 663s > 663s > x <- c(1.0, 0.0, 0.0) 663s > y <- c(1.0, 0.5, 0.0) 663s > z <- c(0.0, 0.0, 1.0) 663s > identical(pracma::dot(x, crossn(rbind(y, z))), 663s + det(rbind(x, y, z))) 663s [1] TRUE 663s > 663s BEGIN TEST deval.R 663s 663s R version 4.3.2 (2023-10-31) -- "Eye Holes" 663s Copyright (C) 2023 The R Foundation for Statistical Computing 663s Platform: x86_64-pc-linux-gnu (64-bit) 663s 663s R is free software and comes with ABSOLUTELY NO WARRANTY. 663s You are welcome to redistribute it under certain conditions. 663s Type 'license()' or 'licence()' for distribution details. 663s 663s R is a collaborative project with many contributors. 663s Type 'contributors()' for more information and 663s 'citation()' on how to cite R or R packages in publications. 663s 663s Type 'demo()' for some demos, 'help()' for on-line help, or 663s 'help.start()' for an HTML browser interface to help. 663s Type 'q()' to quit R. 663s 663s > ## 663s > ## d e v a l . R Test suite 663s > ## 663s > 663s > deval <- pracma::deval 663s > deeve <- pracma::deeve 663s > 663s > x <- seq(0, 10*pi, len=100) 663s > y <- zapsmall(sin(x)) 663s > 663s > all.equal(deval(x, y, c(-1e-5, 0, 1, 5, 10, 15, 20, 25, 30, x[100], 40)), 663s + as.matrix(c( NA, 663s + 0.0000000, 663s + 0.8358028, 663s + -0.9499175, 663s + -0.5372202, 663s + 0.6442378, 663s + 0.9117673, 663s + -0.1307134, 663s + -0.9756776, 663s + 0.0000000, 663s + NA)), 663s + tolerance = 1e-5 663s + ) 663s [1] TRUE 663s > 663s > all.equal(deeve(x, y), 663s + c(0.000000, 3.141206, 6.282671, 9.424329, 12.566114, 15.707963, 663s + 18.849812, 21.991597, 25.133255, 28.274720, 31.415927), 663s + tolerance = 1e-5) 663s [1] TRUE 663s > 663s BEGIN TEST diag.R 663s 663s R version 4.3.2 (2023-10-31) -- "Eye Holes" 663s Copyright (C) 2023 The R Foundation for Statistical Computing 663s Platform: x86_64-pc-linux-gnu (64-bit) 663s 663s R is free software and comes with ABSOLUTELY NO WARRANTY. 663s You are welcome to redistribute it under certain conditions. 663s Type 'license()' or 'licence()' for distribution details. 663s 663s R is a collaborative project with many contributors. 663s Type 'contributors()' for more information and 663s 'citation()' on how to cite R or R packages in publications. 663s 663s Type 'demo()' for some demos, 'help()' for on-line help, or 663s 'help.start()' for an HTML browser interface to help. 663s Type 'q()' to quit R. 663s 663s > ## 663s > ## m t r a c e . R Test suite 663s > ## 663s > 663s > Diag <- pracma::Diag 663s > 663s > all.equal(Diag(matrix(1:12,3,4), 1), c(4,8,12)) 663s [1] TRUE 663s > all.equal(Diag(matrix(1:12,3,4), -1), c(2,6)) 663s [1] TRUE 663s > identical(Diag(Diag(c(1,5,9)), 0), c(1,5,9)) 663s [1] TRUE 663s > 663s BEGIN TEST distmat.R 663s 663s R version 4.3.2 (2023-10-31) -- "Eye Holes" 663s Copyright (C) 2023 The R Foundation for Statistical Computing 663s Platform: x86_64-pc-linux-gnu (64-bit) 663s 663s R is free software and comes with ABSOLUTELY NO WARRANTY. 663s You are welcome to redistribute it under certain conditions. 663s Type 'license()' or 'licence()' for distribution details. 663s 663s R is a collaborative project with many contributors. 663s Type 'contributors()' for more information and 663s 'citation()' on how to cite R or R packages in publications. 663s 663s Type 'demo()' for some demos, 'help()' for on-line help, or 663s 'help.start()' for an HTML browser interface to help. 663s Type 'q()' to quit R. 663s 663s > ## 663s > ## d i s t m a t . R tests 663s > ## 663s > 663s > distmat <- pracma::distmat 663s > 663s > A <- c(0.0, 0.0, 0.0) 663s > B <- matrix(c( 663s + 0, 0, 0, 663s + 1, 0, 0, 663s + 0, 1, 0, 663s + 0, 0, 1, 663s + 0, 1, 1, 663s + 1, 0, 1, 663s + 1, 1, 0, 663s + 1, 1, 1), 663s + nrow = 8, ncol = 3, byrow = TRUE) 663s > 663s > all.equal(drop(distmat(A, B)), 663s + c(0, 1, 1, 1, sqrt(2), sqrt(2), sqrt(2), sqrt(3))) 663s [1] TRUE 663s > 663s BEGIN TEST dot.R 663s 663s R version 4.3.2 (2023-10-31) -- "Eye Holes" 663s Copyright (C) 2023 The R Foundation for Statistical Computing 663s Platform: x86_64-pc-linux-gnu (64-bit) 663s 663s R is free software and comes with ABSOLUTELY NO WARRANTY. 663s You are welcome to redistribute it under certain conditions. 663s Type 'license()' or 'licence()' for distribution details. 663s 663s R is a collaborative project with many contributors. 663s Type 'contributors()' for more information and 663s 'citation()' on how to cite R or R packages in publications. 663s 663s Type 'demo()' for some demos, 'help()' for on-line help, or 663s 'help.start()' for an HTML browser interface to help. 663s Type 'q()' to quit R. 663s 663s > ### 663s > ### dot.R +++ Test suite +++ 663s > ### 663s > 663s > 663s > test.dot <- function(input, expected) { 663s + output <- do.call(getFromNamespace("dot", "pracma"), input) 663s + identical(output, expected) 663s + } 663s > 663s > dot.expected.empty <- 0 663s > dot.expected.55 <- 55 663s > dot.expected.t55 <- 55 663s > dot.expected.mm <- c(26, 44) 663s > dot.expected.00 <- 0 663s > dot.expected.neg <- -2 663s > 663s > test.dot(list(x=c(), y=c()), dot.expected.empty) 663s [1] TRUE 663s > test.dot(list(x=1:5, y=1:5), dot.expected.55) 663s [1] TRUE 663s > test.dot(list(x=1:5, y=t(t(1:5))), dot.expected.t55) 663s [1] TRUE 663s > test.dot(list(x=matrix(c(1,3,2,4), 2, 2), y=matrix(c(5,7,6,8), 2, 2)), 663s + dot.expected.mm) 663s [1] TRUE 663s > test.dot(list(x=c(0, 0), y=c(1, 2)), dot.expected.00) 663s [1] TRUE 663s > test.dot(list(x=c(1, 1), y=c(-1, -1)), dot.expected.neg) 663s [1] TRUE 663s > 663s BEGIN TEST eig.R 663s 663s R version 4.3.2 (2023-10-31) -- "Eye Holes" 663s Copyright (C) 2023 The R Foundation for Statistical Computing 663s Platform: x86_64-pc-linux-gnu (64-bit) 663s 663s R is free software and comes with ABSOLUTELY NO WARRANTY. 663s You are welcome to redistribute it under certain conditions. 663s Type 'license()' or 'licence()' for distribution details. 663s 663s R is a collaborative project with many contributors. 663s Type 'contributors()' for more information and 663s 'citation()' on how to cite R or R packages in publications. 663s 663s Type 'demo()' for some demos, 'help()' for on-line help, or 663s 'help.start()' for an HTML browser interface to help. 663s Type 'q()' to quit R. 663s 663s > ### 663s > ### eig.R +++ Test suite +++ 663s > ### 663s > 663s > 663s > test.eig <- function(input, expected) { 663s + output <- do.call(getFromNamespace("eig", "pracma"), input) 663s + identical(output, expected) 663s + } 663s > 663s > eig.expected.empty <- matrix(0, nrow=0, ncol=0) 663s > eig.expected.singl <- 1 663s > eig.expected.mat1 <- c(2, 0) 663s > eig.expected.mat2 <- c(1+1i, 1-1i) 663s > eig.expected.mat3 <- c(1, -1) 663s > 663s > test.eig(list(a=c()), eig.expected.empty) 663s [1] TRUE 663s > test.eig(list(a=c(1)), eig.expected.singl) 663s [1] TRUE 663s > test.eig(list(a=matrix(c(1,-1,-1,1), 2, 2)), eig.expected.mat1) 663s [1] TRUE 663s > test.eig(list(a=matrix(c(1,1,-1,1), 2, 2)), eig.expected.mat2) 663s [1] TRUE 663s > test.eig(list(a=matrix(c(0,1i,-1i,0), 2, 2)), eig.expected.mat3) 663s [1] TRUE 663s > 663s BEGIN TEST factors.R 664s 664s R version 4.3.2 (2023-10-31) -- "Eye Holes" 664s Copyright (C) 2023 The R Foundation for Statistical Computing 664s Platform: x86_64-pc-linux-gnu (64-bit) 664s 664s R is free software and comes with ABSOLUTELY NO WARRANTY. 664s You are welcome to redistribute it under certain conditions. 664s Type 'license()' or 'licence()' for distribution details. 664s 664s R is a collaborative project with many contributors. 664s Type 'contributors()' for more information and 664s 'citation()' on how to cite R or R packages in publications. 664s 664s Type 'demo()' for some demos, 'help()' for on-line help, or 664s 'help.start()' for an HTML browser interface to help. 664s Type 'q()' to quit R. 664s 664s > ### 664s > ### f a c t o r s . R +++ Test suite +++ 664s > ### 664s > 664s > 664s > test.factors <- function(input, expected) { 664s + output <- do.call(getFromNamespace("factors", "pracma"), input) 664s + identical(output, expected) 664s + } 664s > 664s > factors.expected.n2 <- 2 664s > factors.expected.n3 <- 3 664s > # factors.expected.prm <- 999983 664s > # factors.expected.pr2 <- c(9999889, 9999901) 664s > # factors.expected.prp <- c(65003, 65003) 664s > # factors.expected.nn <- c(2, 2, 2, 2, 2, 3, 3, 3, 3, 5, 5, 5, 7, 7, 11) 664s > # factors.expected.nm <- c(99989, 99991, 100003) 664s > # factors.expected.n32 <- c(3, 5, 17, 257, 65537) 664s > 664s > test.factors(list(n=2), factors.expected.n2) 664s [1] TRUE 664s > test.factors(list(n=3), factors.expected.n3) 664s [1] TRUE 664s > # test.factors(list(n=999983), factors.expected.prm) 664s > # test.factors(list(n=9999889*9999901), factors.expected.pr2) 664s > # test.factors(list(n=4225390009), factors.expected.prp) 664s > # test.factors(list(n=2^5 * 3^4 * 5^3 * 7^2 * 11), factors.expected.nn) 664s > # test.factors(list(n=99989*99991*100003), factors.expected.nm) 664s > # test.factors(list(n=2^32-1), factors.expected.n32) 664s > 664s BEGIN TEST find.R 664s 664s R version 4.3.2 (2023-10-31) -- "Eye Holes" 664s Copyright (C) 2023 The R Foundation for Statistical Computing 664s Platform: x86_64-pc-linux-gnu (64-bit) 664s 664s R is free software and comes with ABSOLUTELY NO WARRANTY. 664s You are welcome to redistribute it under certain conditions. 664s Type 'license()' or 'licence()' for distribution details. 664s 664s R is a collaborative project with many contributors. 664s Type 'contributors()' for more information and 664s 'citation()' on how to cite R or R packages in publications. 664s 664s Type 'demo()' for some demos, 'help()' for on-line help, or 664s 'help.start()' for an HTML browser interface to help. 664s Type 'q()' to quit R. 664s 664s > ## 664s > ## f i n d . R tests 664s > ## 664s > 664s > finds <- pracma::finds 664s > 664s > v <- c(3, 2, 1, 1, 2, 3) 664s > identical(finds(v == 1), c(3L, 4L)) 664s [1] TRUE 664s > v <- c(1, 0, 4, -3, 0, 0, 0, 8, 6) 664s > identical(finds(v), as.integer(c(1, 3, 4, 8, 9))) 664s [1] TRUE 664s > identical(finds(v > 2), c(3L, 8L, 9L)) 664s [1] TRUE 664s > identical(finds(c()), integer(0)) 664s [1] TRUE 664s > identical(finds(c(TRUE, FALSE, TRUE, FALSE, TRUE)), c(1L, 3L, 5L)) 664s [1] TRUE 664s > 664s BEGIN TEST findintervals.R 664s 664s R version 4.3.2 (2023-10-31) -- "Eye Holes" 664s Copyright (C) 2023 The R Foundation for Statistical Computing 664s Platform: x86_64-pc-linux-gnu (64-bit) 664s 664s R is free software and comes with ABSOLUTELY NO WARRANTY. 664s You are welcome to redistribute it under certain conditions. 664s Type 'license()' or 'licence()' for distribution details. 664s 664s R is a collaborative project with many contributors. 664s Type 'contributors()' for more information and 664s 'citation()' on how to cite R or R packages in publications. 664s 664s Type 'demo()' for some demos, 'help()' for on-line help, or 664s 'help.start()' for an HTML browser interface to help. 664s Type 'q()' to quit R. 664s 664s > ## 664s > ## f i n d i n t e r v a l s . R Test suite 664s > ## 664s > 664s > findintervals <- pracma::findintervals 664s > 664s > identical(findintervals(0, zapsmall(sin(seq(0, 10*pi, len=100)))), 664s + as.integer(c(1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100))) 664s [1] TRUE 664s > 664s BEGIN TEST findpeaks.R 664s 664s R version 4.3.2 (2023-10-31) -- "Eye Holes" 664s Copyright (C) 2023 The R Foundation for Statistical Computing 664s Platform: x86_64-pc-linux-gnu (64-bit) 664s 664s R is free software and comes with ABSOLUTELY NO WARRANTY. 664s You are welcome to redistribute it under certain conditions. 664s Type 'license()' or 'licence()' for distribution details. 664s 664s R is a collaborative project with many contributors. 664s Type 'contributors()' for more information and 664s 'citation()' on how to cite R or R packages in publications. 664s 664s Type 'demo()' for some demos, 'help()' for on-line help, or 664s 'help.start()' for an HTML browser interface to help. 664s Type 'q()' to quit R. 664s 664s > ## 664s > ## f i n d p e a k s . R Test suite 664s > ## 664s > 664s > 664s > findpeaks <- pracma::findpeaks 664s > 664s > x <- c(2, 12, 4, 6, 9, 4, 3, 1, 19, 7) 664s > identical(findpeaks(x), 664s + matrix(c(12,9,19, 2,5,9, 1,3,8, 3,8,10), nrow=3, ncol=4)) 664s [1] TRUE 664s > identical(findpeaks(x, npeaks = 1, sortstr = TRUE), 664s + matrix(c(19, 9, 8, 10), nrow = 1)) 664s [1] TRUE 664s > identical(findpeaks(x, minpeakheight = 15), 664s + matrix(c(19, 9, 8, 10), nrow = 1)) 664s [1] TRUE 664s > identical(findpeaks(x, threshold = 10), 664s + matrix(c(19, 9, 8, 10), nrow = 1)) 664s [1] TRUE 664s > # Not yet implemented 664s > # identical(findpeaks(x, threshold = 10), 664s > # c(19, 9, 8, 9)) 664s > 664s > 664s BEGIN TEST flipdim.R 664s 664s R version 4.3.2 (2023-10-31) -- "Eye Holes" 664s Copyright (C) 2023 The R Foundation for Statistical Computing 664s Platform: x86_64-pc-linux-gnu (64-bit) 664s 664s R is free software and comes with ABSOLUTELY NO WARRANTY. 664s You are welcome to redistribute it under certain conditions. 664s Type 'license()' or 'licence()' for distribution details. 664s 664s R is a collaborative project with many contributors. 664s Type 'contributors()' for more information and 664s 'citation()' on how to cite R or R packages in publications. 664s 664s Type 'demo()' for some demos, 'help()' for on-line help, or 664s 'help.start()' for an HTML browser interface to help. 664s Type 'q()' to quit R. 664s 664s > ## 664s > ## f l i p d i m . R tests 664s > ## 664s > 664s > flipdim <- pracma::flipdim 664s > flipud <- pracma::flipud 664s > fliplr <- pracma::fliplr 664s > rot90 <- pracma::rot90 664s > 664s > a <- matrix(c(1,2,3, 4,5,6, 7,8,9, 10,11,12), nrow=3, ncol=4) 664s > b <- matrix(c(1,2, 3,4), nrow=2, ncol=2, byrow=TRUE) 664s > 664s > identical(flipdim(a, 1), flipud(a)) 664s [1] TRUE 664s > identical(fliplr(a), matrix(c(10,11,12, 7,8,9, 4,5,6, 1,2,3 ), 3, 4)) 664s [1] TRUE 664s > identical(rot90(b, k=1), matrix(c(2,1, 4,3), 2, 2)) 664s [1] TRUE 664s > identical(rot90(b, k=6), matrix(c(4,2, 3,1), 2, 2)) 664s [1] TRUE 664s > identical(rot90(b, k=-1), matrix(c(3,4, 1,2), 2, 2)) 664s [1] TRUE 664s > 664s BEGIN TEST fnorm.R 665s 665s R version 4.3.2 (2023-10-31) -- "Eye Holes" 665s Copyright (C) 2023 The R Foundation for Statistical Computing 665s Platform: x86_64-pc-linux-gnu (64-bit) 665s 665s R is free software and comes with ABSOLUTELY NO WARRANTY. 665s You are welcome to redistribute it under certain conditions. 665s Type 'license()' or 'licence()' for distribution details. 665s 665s R is a collaborative project with many contributors. 665s Type 'contributors()' for more information and 665s 'citation()' on how to cite R or R packages in publications. 665s 665s Type 'demo()' for some demos, 'help()' for on-line help, or 665s 'help.start()' for an HTML browser interface to help. 665s Type 'q()' to quit R. 665s 665s > ## 665s > ## f n o r m Test suite 665s > ## 665s > 665s > 665s > fnorm <- pracma::fnorm 665s > 665s > identical(fnorm(log, sqrt, 1, 2, p = Inf), 1.0) 665s [1] TRUE 665s > identical(fnorm(log, sqrt, 1, 2, p = -Inf), sqrt(2) - log(2)) 665s [1] TRUE 665s > identical(fnorm(log, sqrt, 1, 2, p = 0), Inf) 665s [1] TRUE 665s > 665s BEGIN TEST gamma.R 665s 665s R version 4.3.2 (2023-10-31) -- "Eye Holes" 665s Copyright (C) 2023 The R Foundation for Statistical Computing 665s Platform: x86_64-pc-linux-gnu (64-bit) 665s 665s R is free software and comes with ABSOLUTELY NO WARRANTY. 665s You are welcome to redistribute it under certain conditions. 665s Type 'license()' or 'licence()' for distribution details. 665s 665s R is a collaborative project with many contributors. 665s Type 'contributors()' for more information and 665s 'citation()' on how to cite R or R packages in publications. 665s 665s Type 'demo()' for some demos, 'help()' for on-line help, or 665s 'help.start()' for an HTML browser interface to help. 665s Type 'q()' to quit R. 665s 665s > ## 665s > ## g a m m a z . R Test suite 665s > ## 665s > 665s > 665s > gammaz <- pracma::gammaz 665s > 665s > ## Problematic on Solaris (2012-01-25) 665s > # y <- seq(from=0,to=5,by=0.5) 665s > # # z0 <- lngamma_complex(1+y*1i) 665s > # z0 <- c(0.0000000+0.0000000i, -0.1909455-0.2440583i, -0.6509232-0.3016403i, 665s > # -1.2344831-0.1629398i, -1.8760788+0.1296463i, -2.5499068+0.5426044i, 665s > # -3.2441443+1.0533508i, -3.9524671+1.6461926i, -4.6710996+2.3096981i, 665s > # -5.3976062+3.0351970i, -6.1303241-2.4672867i) 665s > # 665s > # all.equal(gammaz(1+y*1i), exp(z0), tolerance = 1e-7) 665s > 665s BEGIN TEST gradient.R 665s 665s R version 4.3.2 (2023-10-31) -- "Eye Holes" 665s Copyright (C) 2023 The R Foundation for Statistical Computing 665s Platform: x86_64-pc-linux-gnu (64-bit) 665s 665s R is free software and comes with ABSOLUTELY NO WARRANTY. 665s You are welcome to redistribute it under certain conditions. 665s Type 'license()' or 'licence()' for distribution details. 665s 665s R is a collaborative project with many contributors. 665s Type 'contributors()' for more information and 665s 'citation()' on how to cite R or R packages in publications. 665s 665s Type 'demo()' for some demos, 'help()' for on-line help, or 665s 'help.start()' for an HTML browser interface to help. 665s Type 'q()' to quit R. 665s 665s > ## 665s > ## g r a d i e n t . R Test suite 665s > ## 665s > 665s > 665s > gradient <- pracma::gradient 665s > 665s > x <- c(0.0, 0.2, 0.4, 0.6, 0.8, 1.0) 665s > y <- c(1, 2, 3) 665s > 665s > Z <- matrix(c( 665s + 1, 1.04, 1.16, 1.36, 1.64, 2, 665s + 4, 4.04, 4.16, 4.36, 4.64, 5, 665s + 9, 9.04, 9.16, 9.36, 9.64, 10), nrow = 3, byrow = TRUE) 665s > 665s > X1 <- matrix(c( 665s + 0.04, 0.08, 0.16, 0.24, 0.32, 0.36, 665s + 0.04, 0.08, 0.16, 0.24, 0.32, 0.36, 665s + 0.04, 0.08, 0.16, 0.24, 0.32, 0.36), nrow = 3, byrow = TRUE) 665s > 665s > X2 <- matrix(c( 665s + 0.2, 0.4, 0.8, 1.2, 1.6, 1.8, 665s + 0.2, 0.4, 0.8, 1.2, 1.6, 1.8, 665s + 0.2, 0.4, 0.8, 1.2, 1.6, 1.8), nrow = 3, byrow = TRUE) 665s > 665s > Y <- matrix(c( 665s + 3, 3, 3, 3, 3, 3, 665s + 4, 4, 4, 4, 4, 4, 665s + 5, 5, 5, 5, 5, 5), nrow = 3, byrow = TRUE) 665s > 665s > all.equal(gradient(Z)$X, X1) 665s [1] TRUE 665s > all.equal(gradient(Z, x, y)$X, X2) 665s [1] TRUE 665s > all.equal(gradient(Z, x, y)$Y, Y) 665s [1] TRUE 665s > 665s BEGIN TEST hadamard.R 665s 665s R version 4.3.2 (2023-10-31) -- "Eye Holes" 665s Copyright (C) 2023 The R Foundation for Statistical Computing 665s Platform: x86_64-pc-linux-gnu (64-bit) 665s 665s R is free software and comes with ABSOLUTELY NO WARRANTY. 665s You are welcome to redistribute it under certain conditions. 665s Type 'license()' or 'licence()' for distribution details. 665s 665s R is a collaborative project with many contributors. 665s Type 'contributors()' for more information and 665s 'citation()' on how to cite R or R packages in publications. 665s 665s Type 'demo()' for some demos, 'help()' for on-line help, or 665s 'help.start()' for an HTML browser interface to help. 665s Type 'q()' to quit R. 665s 665s > ## 665s > ## ha d a m a r d . R Test suite 665s > ## 665s > 665s > 665s > hadamard <- pracma::hadamard 665s > Toeplitz <- pracma::Toeplitz 665s > 665s > all.equal(hadamard(2), 665s + matrix(c(1, 1, 1, -1), 2, 2)) 665s [1] TRUE 665s > all.equal(hadamard(4), 665s + matrix(c(1, 1, 1, 1, 665s + 1, -1, 1, -1, 665s + 1, 1, -1, -1, 665s + 1, -1, -1, 1), 4, 4)) 665s [1] TRUE 665s > # H12 <- hadamard(12) 665s > # all.equal(t(H12) %*% H12, 665s > # diag(12, 12, 12)) 665s > # H20 <- hadamard(20) 665s > # all.equal(t(H20) %*% H20, 665s > # diag(20, 20, 20)) 665s > 665s > all.equal(Toeplitz(c(1, 2, 4, 6, 8), c(1, 3, 5, 7, 9)), 665s + matrix(c(1, 3, 5, 7, 9, 665s + 2, 1, 3, 5, 7, 665s + 4, 2, 1, 3, 5, 665s + 6, 4, 2, 1, 3, 665s + 8, 6, 4, 2, 1), 5, 5, byrow = TRUE)) 665s [1] TRUE 665s > 665s BEGIN TEST hankel.R 665s 665s R version 4.3.2 (2023-10-31) -- "Eye Holes" 665s Copyright (C) 2023 The R Foundation for Statistical Computing 665s Platform: x86_64-pc-linux-gnu (64-bit) 665s 665s R is free software and comes with ABSOLUTELY NO WARRANTY. 665s You are welcome to redistribute it under certain conditions. 665s Type 'license()' or 'licence()' for distribution details. 665s 665s R is a collaborative project with many contributors. 665s Type 'contributors()' for more information and 665s 'citation()' on how to cite R or R packages in publications. 665s 665s Type 'demo()' for some demos, 'help()' for on-line help, or 665s 'help.start()' for an HTML browser interface to help. 665s Type 'q()' to quit R. 665s 665s > ## 665s > ## hankel.R Test 665s > ## 665s > 665s > hankel <- pracma::hankel 665s > 665s > identical(hankel(2), matrix(2, nrow=1, ncol=1)) 665s [1] TRUE 665s > identical(hankel(1:3), matrix(c(1,2,3,2,3,0,3,0,0), 3, 3)) 665s [1] TRUE 665s > identical(hankel(1:3, 3:1), matrix(c(1,2,3,2,3,2,3,2,1), 3, 3)) 665s [1] TRUE 665s > identical(hankel(1:3, 2:1), matrix(c(1,2,3,2,3,1), 3, 2)) 665s [1] TRUE 665s > identical(hankel(1:2, 3:1), matrix(c(1,2,2,2,2,1), 2, 3)) 665s [1] TRUE 665s > 665s Warning message: 665s In hankel(1:3, 2:1) : a[n] not equal to b[1], b[1] set to a[n]. 665s Warning message: 665s In hankel(1:2, 3:1) : a[n] not equal to b[1], b[1] set to a[n]. 665s BEGIN TEST hilb.R 665s 665s R version 4.3.2 (2023-10-31) -- "Eye Holes" 665s Copyright (C) 2023 The R Foundation for Statistical Computing 665s Platform: x86_64-pc-linux-gnu (64-bit) 665s 665s R is free software and comes with ABSOLUTELY NO WARRANTY. 665s You are welcome to redistribute it under certain conditions. 665s Type 'license()' or 'licence()' for distribution details. 665s 665s R is a collaborative project with many contributors. 665s Type 'contributors()' for more information and 665s 'citation()' on how to cite R or R packages in publications. 665s 665s Type 'demo()' for some demos, 'help()' for on-line help, or 665s 'help.start()' for an HTML browser interface to help. 665s Type 'q()' to quit R. 665s 666s > ### 666s > ### hilb.R +++ Test suite +++ 666s > ### 666s > 666s > 666s > test.hilb <- function(input, expected) { 666s + output <- do.call(getFromNamespace("hilb", "pracma"), input) 666s + identical(output, expected) 666s + } 666s > 666s > hilb.expected.m1 <- matrix(NA, nrow=0, ncol=0) 666s > hilb.expected.0 <- matrix(0, nrow=0, ncol=0) 666s > hilb.expected.1 <- matrix(1, nrow=1, ncol=1) 666s > hilb.expected.5 <- 1 / matrix(c(1:5,2:6,3:7,4:8,5:9), nrow=5,ncol=5) 666s > 666s > test.hilb(list(n=-1), hilb.expected.m1) 666s [1] TRUE 666s > test.hilb(list(n=0), hilb.expected.0) 666s [1] TRUE 666s > test.hilb(list(n=1), hilb.expected.1) 666s [1] TRUE 666s > test.hilb(list(n=5), hilb.expected.5) 666s [1] TRUE 666s > 666s BEGIN TEST horner.R 666s 666s R version 4.3.2 (2023-10-31) -- "Eye Holes" 666s Copyright (C) 2023 The R Foundation for Statistical Computing 666s Platform: x86_64-pc-linux-gnu (64-bit) 666s 666s R is free software and comes with ABSOLUTELY NO WARRANTY. 666s You are welcome to redistribute it under certain conditions. 666s Type 'license()' or 'licence()' for distribution details. 666s 666s R is a collaborative project with many contributors. 666s Type 'contributors()' for more information and 666s 'citation()' on how to cite R or R packages in publications. 666s 666s Type 'demo()' for some demos, 'help()' for on-line help, or 666s 'help.start()' for an HTML browser interface to help. 666s Type 'q()' to quit R. 666s 666s > ## 666s > ## h or n e r . R Test Suite 666s > ## 666s > 666s > 666s > horner <- pracma::horner 666s > hornerdefl <- pracma::hornerdefl 666s > 666s > p <- c(1, 0, 1) 666s > x <- c(-2, -1, 0, 1, 2) 666s > identical(horner(p, x)$y, x^2 + 1) 666s [1] TRUE 666s > identical(horner(p, x)$dy, 2*x) 666s [1] TRUE 666s > 666s > p <- c(1, -6, 11, -6) 666s > identical(hornerdefl(p, 3)$y, 0) 666s [1] TRUE 666s > identical(hornerdefl(p, 3)$q, (c(1, -3, 2))) 666s [1] TRUE 666s > 666s BEGIN TEST hypot.R 666s 666s R version 4.3.2 (2023-10-31) -- "Eye Holes" 666s Copyright (C) 2023 The R Foundation for Statistical Computing 666s Platform: x86_64-pc-linux-gnu (64-bit) 666s 666s R is free software and comes with ABSOLUTELY NO WARRANTY. 666s You are welcome to redistribute it under certain conditions. 666s Type 'license()' or 'licence()' for distribution details. 666s 666s R is a collaborative project with many contributors. 666s Type 'contributors()' for more information and 666s 'citation()' on how to cite R or R packages in publications. 666s 666s Type 'demo()' for some demos, 'help()' for on-line help, or 666s 'help.start()' for an HTML browser interface to help. 666s Type 'q()' to quit R. 666s 666s > ### 666s > ### h y p o t Tests 666s > ### 666s > 666s > 666s > hypot <- pracma::hypot 666s > identical(hypot(3,4), 5) 666s [1] TRUE 666s > identical(hypot(c(0,0), c(3,4)), c(3,4)) 666s [1] TRUE 666s > 666s BEGIN TEST interp1.R 666s 666s R version 4.3.2 (2023-10-31) -- "Eye Holes" 666s Copyright (C) 2023 The R Foundation for Statistical Computing 666s Platform: x86_64-pc-linux-gnu (64-bit) 666s 666s R is free software and comes with ABSOLUTELY NO WARRANTY. 666s You are welcome to redistribute it under certain conditions. 666s Type 'license()' or 'licence()' for distribution details. 666s 666s R is a collaborative project with many contributors. 666s Type 'contributors()' for more information and 666s 'citation()' on how to cite R or R packages in publications. 666s 666s Type 'demo()' for some demos, 'help()' for on-line help, or 666s 'help.start()' for an HTML browser interface to help. 666s Type 'q()' to quit R. 666s 666s > ## 666s > ## i n t e r p 1 . R Test suite 666s > ## 666s > 666s > 666s > interp1 <- pracma::interp1 666s > 666s > x <- c(0.0, 0.5, 1.0, 1.5) 666s > y <- x^2 666s > xi <- c(0.25, 0.75, 1.25) 666s > 666s > identical(interp1(x, y, xi, method="constant"), c(0.0, 0.25, 1.0)) 666s [1] TRUE 666s > identical(interp1(x, y, xi, method="linear"), c(0.125, 0.625, 1.625)) 666s [1] TRUE 666s > identical(interp1(x, y, xi, method="nearest"), c(0.25, 1.00, 2.25)) 666s [1] TRUE 666s > identical(interp1(x, y, xi, method="spline"), c(0.0625, 0.5625, 1.5625)) 666s [1] FALSE 666s > 666s > # Not yet implemented 666s > # identical(interp1(x, y, xi, method="cubic"), c(0.0781, 0.5547, 1.5547)) 666s > 666s BEGIN TEST interp2.R 666s 666s R version 4.3.2 (2023-10-31) -- "Eye Holes" 666s Copyright (C) 2023 The R Foundation for Statistical Computing 666s Platform: x86_64-pc-linux-gnu (64-bit) 666s 666s R is free software and comes with ABSOLUTELY NO WARRANTY. 666s You are welcome to redistribute it under certain conditions. 666s Type 'license()' or 'licence()' for distribution details. 666s 666s R is a collaborative project with many contributors. 666s Type 'contributors()' for more information and 666s 'citation()' on how to cite R or R packages in publications. 666s 666s Type 'demo()' for some demos, 'help()' for on-line help, or 666s 'help.start()' for an HTML browser interface to help. 666s Type 'q()' to quit R. 666s 666s > ## 666s > ## i n t e r p 2 . R Test suite 666s > ## 666s > 666s > 666s > interp2 <- pracma::interp2 666s > 666s > x <- c(0.0, 0.2, 0.4, 0.6, 0.8, 1.0) 666s > y <- c(1, 2, 3) 666s > 666s > Z <- matrix(c( 666s + 1, 1.04, 1.16, 1.36, 1.64, 2, 666s + 4, 4.04, 4.16, 4.36, 4.64, 5, 666s + 9, 9.04, 9.16, 9.36, 9.64, 10), nrow = 3, byrow = TRUE) 666s > 666s > all.equal(interp2(x, y, Z, 0.55, 2.55, method = "constant"), 4.16) 666s [1] TRUE 666s > all.equal(interp2(x, y, Z, 0.55, 2.55, method = "nearest"), 9.36) 666s [1] TRUE 666s > 666s > all.equal(interp2(x, y, Z, 0.5, 2.5, method = "linear"), 6.76) 666s [1] TRUE 666s > all.equal(interp2(x, y, Z, 0.55, 2.5, method = "linear"), 6.81) 666s [1] TRUE 666s > all.equal(interp2(x, y, Z, 0.5, 2.55, method = "linear"), 7.01) 666s [1] TRUE 666s > all.equal(interp2(x, y, Z, 0.55, 2.55, method = "linear"), 7.06) 666s [1] TRUE 666s > 666s > all.equal(interp2(x, y, Z, 0.0, 1.5, method = "linear"), 2.5) 666s [1] TRUE 666s > all.equal(interp2(x, y, Z, 0.1, 1.0, method = "linear"), 1.02) 666s [1] TRUE 666s > all.equal(interp2(x, y, Z, 1.0, 2.5, method = "linear"), 7.5) 666s [1] TRUE 666s > all.equal(interp2(x, y, Z, 0.9, 3.0, method = "linear"), 9.82) 666s [1] TRUE 666s > 666s BEGIN TEST inv.R 666s 666s R version 4.3.2 (2023-10-31) -- "Eye Holes" 666s Copyright (C) 2023 The R Foundation for Statistical Computing 666s Platform: x86_64-pc-linux-gnu (64-bit) 666s 666s R is free software and comes with ABSOLUTELY NO WARRANTY. 666s You are welcome to redistribute it under certain conditions. 666s Type 'license()' or 'licence()' for distribution details. 666s 666s R is a collaborative project with many contributors. 666s Type 'contributors()' for more information and 666s 'citation()' on how to cite R or R packages in publications. 666s 666s Type 'demo()' for some demos, 'help()' for on-line help, or 666s 'help.start()' for an HTML browser interface to help. 666s Type 'q()' to quit R. 666s 667s > ### 667s > ### eig.R +++ Test suite +++ 667s > ### 667s > 667s > 667s > test.inv <- function(input, expected) { 667s + output <- do.call(getFromNamespace("inv", "pracma"), input) 667s + identical(output, expected) 667s + } 667s > 667s > inv.expected.empty <- matrix(0, nrow=0, ncol=0) 667s > inv.expected.singl <- matrix(Inf, 2, 2) 667s > inv.expected.mat1 <- matrix(c(3,-3,1, -3,5,-2, 1,-2,1), 3, 3) 667s > 667s > test.inv(list(a=c()), inv.expected.empty) 667s [1] TRUE 667s > test.inv(list(a=matrix(1, 2, 2)), inv.expected.singl) 667s [1] TRUE 667s > test.inv(list(a=matrix(c(1,1,1, 1,2,3, 1,3,6), 3, 3)), inv.expected.mat1) 667s [1] TRUE 667s > 667s Warning message: 667s In (function (a) : Matrix appears to be singular. 667s BEGIN TEST isprime.R 667s 667s R version 4.3.2 (2023-10-31) -- "Eye Holes" 667s Copyright (C) 2023 The R Foundation for Statistical Computing 667s Platform: x86_64-pc-linux-gnu (64-bit) 667s 667s R is free software and comes with ABSOLUTELY NO WARRANTY. 667s You are welcome to redistribute it under certain conditions. 667s Type 'license()' or 'licence()' for distribution details. 667s 667s R is a collaborative project with many contributors. 667s Type 'contributors()' for more information and 667s 'citation()' on how to cite R or R packages in publications. 667s 667s Type 'demo()' for some demos, 'help()' for on-line help, or 667s 'help.start()' for an HTML browser interface to help. 667s Type 'q()' to quit R. 667s 667s > ### 667s > ### ISPRIME.R +++ Test suite +++ 667s > ### 667s > 667s > 667s > test.isprime <- function(input, expected) { 667s + output <- do.call(getFromNamespace("isprime", "pracma"), input) 667s + identical(output, expected) 667s + } 667s > 667s > isprime.expected.n1 <- 0 667s > isprime.expected.n2 <- 1 667s > isprime.expected.n100 <- 667s + matrix(c(0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 667s + 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 667s + 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 667s + 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 667s + 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 667s + 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 667s + 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 667s + 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 667s + 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 667s + 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ), 667s + nrow=10, ncol=10, byrow=TRUE) 667s > 667s > test.isprime(list(x=1), isprime.expected.n1) 667s [1] TRUE 667s > test.isprime(list(x=2), isprime.expected.n2) 667s [1] TRUE 667s > test.isprime(list(x=matrix(1:100, 10, 10, byrow=TRUE)), 667s + isprime.expected.n100) 667s [1] TRUE 667s > 667s BEGIN TEST lambertW.R 667s 667s R version 4.3.2 (2023-10-31) -- "Eye Holes" 667s Copyright (C) 2023 The R Foundation for Statistical Computing 667s Platform: x86_64-pc-linux-gnu (64-bit) 667s 667s R is free software and comes with ABSOLUTELY NO WARRANTY. 667s You are welcome to redistribute it under certain conditions. 667s Type 'license()' or 'licence()' for distribution details. 667s 667s R is a collaborative project with many contributors. 667s Type 'contributors()' for more information and 667s 'citation()' on how to cite R or R packages in publications. 667s 667s Type 'demo()' for some demos, 'help()' for on-line help, or 667s 'help.start()' for an HTML browser interface to help. 667s Type 'q()' to quit R. 667s 667s > ## 667s > ## l a m b e r t W . R test suite 667s > ## 667s > 667s > 667s > lambertWp <- pracma::lambertWp 667s > 667s > x <- seq(0, 10, len=21) 667s > # y <- lambert_W0(x) 667s > y0 <- c(0.0000000, 0.3517337, 0.5671433, 0.7258614, 0.8526055, 0.9585864, 667s + 1.0499089, 1.1302893, 1.2021679, 1.2672378, 1.3267247, 1.3815454, 667s + 1.4324048, 1.4798568, 1.5243452, 1.5662310, 1.6058120, 1.6433371, 667s + 1.6790164, 1.7130288, 1.7455280) 667s > 667s > all.equal(lambertWp(x), y0, tolerance = 1e-7) 667s [1] TRUE 667s > 667s BEGIN TEST linspace.R 667s 667s R version 4.3.2 (2023-10-31) -- "Eye Holes" 667s Copyright (C) 2023 The R Foundation for Statistical Computing 667s Platform: x86_64-pc-linux-gnu (64-bit) 667s 667s R is free software and comes with ABSOLUTELY NO WARRANTY. 667s You are welcome to redistribute it under certain conditions. 667s Type 'license()' or 'licence()' for distribution details. 667s 667s R is a collaborative project with many contributors. 667s Type 'contributors()' for more information and 667s 'citation()' on how to cite R or R packages in publications. 667s 667s Type 'demo()' for some demos, 'help()' for on-line help, or 667s 'help.start()' for an HTML browser interface to help. 667s Type 'q()' to quit R. 667s 667s > ## 667s > ## l i n s p a c e . R 667s > ## 667s > 667s > linspace <- pracma::linspace 667s > logspace <- pracma::logspace 667s > logseq <- pracma::logseq 667s > 667s > identical(linspace(1, 100), as.numeric(1:100)) 667s [1] TRUE 667s > identical(linspace(0, 25, 5), c(0, 6.25, 12.50, 18.75, 25)) 667s [1] TRUE 667s > identical(linspace(1, 25, 1.5), 25) 667s [1] TRUE 667s > identical(all.equal(logspace(1, pi, n=5), 667s + c(10.0000, 7.4866, 5.6050, 4.1963, 3.1416), 667s + tolerance=0.0001), 667s + TRUE) 667s [1] TRUE 667s > all.equal(logseq(1, 100, 3), c(1, 10, 100)) 667s [1] TRUE 667s > 667s BEGIN TEST magic.R 667s 667s R version 4.3.2 (2023-10-31) -- "Eye Holes" 667s Copyright (C) 2023 The R Foundation for Statistical Computing 667s Platform: x86_64-pc-linux-gnu (64-bit) 667s 667s R is free software and comes with ABSOLUTELY NO WARRANTY. 667s You are welcome to redistribute it under certain conditions. 667s Type 'license()' or 'licence()' for distribution details. 667s 667s R is a collaborative project with many contributors. 667s Type 'contributors()' for more information and 667s 'citation()' on how to cite R or R packages in publications. 667s 667s Type 'demo()' for some demos, 'help()' for on-line help, or 667s 'help.start()' for an HTML browser interface to help. 667s Type 'q()' to quit R. 667s 667s > ## 667s > ## ma g i c . R -- Test suite 667s > ## 667s > 667s > 667s > magic <- pracma::magic 667s > 667s > identical(magic(3), matrix(c(8, 1, 6, 667s + 3, 5, 7, 667s + 4, 9, 2), nrow = 3, ncol = 3, byrow = TRUE)) 667s [1] TRUE 667s > 667s > identical(magic(4), matrix(c(16, 2, 3, 13, 667s + 5, 11, 10, 8, 667s + 9, 7, 6, 12, 667s + 4, 14, 15, 1), 667s + nrow = 4, ncol = 4, byrow = TRUE)) 667s [1] TRUE 667s > 667s > identical(magic(6), matrix(c(35, 1, 6, 26, 19, 24, 667s + 3, 32, 7, 21, 23, 25, 667s + 31, 9, 2, 22, 27, 20, 667s + 8, 28, 33, 17, 10, 15, 667s + 30, 5, 34, 12, 14, 16, 667s + 4, 36, 29, 13, 18, 11), 667s + nrow = 6, ncol = 6, byrow = TRUE)) 667s [1] TRUE 667s > 667s > identical(magic(10), matrix(c(92, 99, 1, 8, 15, 67, 74, 51, 58, 40, 667s + 98, 80, 7, 14, 16, 73, 55, 57, 64, 41, 667s + 4, 81, 88, 20, 22, 54, 56, 63, 70, 47, 667s + 85, 87, 19, 21, 3, 60, 62, 69, 71, 28, 667s + 86, 93, 25, 2, 9, 61, 68, 75, 52, 34, 667s + 17, 24, 76, 83, 90, 42, 49, 26, 33, 65, 667s + 23, 5, 82, 89, 91, 48, 30, 32, 39, 66, 667s + 79, 6, 13, 95, 97, 29, 31, 38, 45, 72, 667s + 10, 12, 94, 96, 78, 35, 37, 44, 46, 53, 667s + 11, 18,100, 77, 84, 36, 43, 50, 27, 59), 667s + nrow = 10, ncol = 10, byrow = TRUE)) 667s [1] TRUE 667s > 667s BEGIN TEST meshgrid.R 667s 667s R version 4.3.2 (2023-10-31) -- "Eye Holes" 667s Copyright (C) 2023 The R Foundation for Statistical Computing 667s Platform: x86_64-pc-linux-gnu (64-bit) 667s 667s R is free software and comes with ABSOLUTELY NO WARRANTY. 667s You are welcome to redistribute it under certain conditions. 667s Type 'license()' or 'licence()' for distribution details. 667s 667s R is a collaborative project with many contributors. 667s Type 'contributors()' for more information and 667s 'citation()' on how to cite R or R packages in publications. 667s 667s Type 'demo()' for some demos, 'help()' for on-line help, or 667s 'help.start()' for an HTML browser interface to help. 667s Type 'q()' to quit R. 667s 668s > ## 668s > ## m e s h g r i d . R Test suite 668s > ## 668s > 668s > 668s > meshgrid <- pracma::meshgrid 668s > 668s > identical(meshgrid(1:3, 10:14)$X, 668s + matrix(rep(c(1:3), each = 5), nr = 5, nc = 3)) 668s [1] TRUE 668s > identical(meshgrid(1:3, 10:14)$Y, 668s + matrix(rep(10:14, times = 3), nr = 5, nc = 3)) 668s [1] TRUE 668s > 668s BEGIN TEST mldivide.R 668s 668s R version 4.3.2 (2023-10-31) -- "Eye Holes" 668s Copyright (C) 2023 The R Foundation for Statistical Computing 668s Platform: x86_64-pc-linux-gnu (64-bit) 668s 668s R is free software and comes with ABSOLUTELY NO WARRANTY. 668s You are welcome to redistribute it under certain conditions. 668s Type 'license()' or 'licence()' for distribution details. 668s 668s R is a collaborative project with many contributors. 668s Type 'contributors()' for more information and 668s 'citation()' on how to cite R or R packages in publications. 668s 668s Type 'demo()' for some demos, 'help()' for on-line help, or 668s 'help.start()' for an HTML browser interface to help. 668s Type 'q()' to quit R. 668s 668s > ## 668s > ## m l d i v i d e . R test suite 668s > ## 668s > 668s > 668s > mldivide <- pracma::mldivide 668s > mrdivide <- pracma::mrdivide 668s > 668s > A <- matrix(c(8,1,6, 3,5,7, 4,9,2), nrow = 3, ncol = 3, byrow = TRUE) 668s > identical(all.equal(mldivide(A, A), diag(1, 3, 3), tolerance=1e-7), TRUE) 668s [1] TRUE 668s > identical(all.equal(mrdivide(A, A), diag(1, 3, 3), tolerance=1e-7), TRUE) 668s [1] TRUE 668s > 668s BEGIN TEST mod.R 668s 668s R version 4.3.2 (2023-10-31) -- "Eye Holes" 668s Copyright (C) 2023 The R Foundation for Statistical Computing 668s Platform: x86_64-pc-linux-gnu (64-bit) 668s 668s R is free software and comes with ABSOLUTELY NO WARRANTY. 668s You are welcome to redistribute it under certain conditions. 668s Type 'license()' or 'licence()' for distribution details. 668s 668s R is a collaborative project with many contributors. 668s Type 'contributors()' for more information and 668s 'citation()' on how to cite R or R packages in publications. 668s 668s Type 'demo()' for some demos, 'help()' for on-line help, or 668s 'help.start()' for an HTML browser interface to help. 668s Type 'q()' to quit R. 668s 668s > ## 668s > ## m o d . R tests 668s > ## 668s > 668s > mod <- pracma::mod 668s > rem <- pracma::rem 668s > 668s > identical(mod(0, 0), 0) 668s [1] TRUE 668s > identical(mod(1, 0), 1) 668s [1] TRUE 668s > identical(mod(0, 2), 0) 668s [1] TRUE 668s > identical(mod(5, 3), 2) 668s [1] TRUE 668s > identical(mod(5, -3), -1) 668s [1] TRUE 668s > identical(mod(-5, 3), 1) 668s [1] TRUE 668s > identical(mod(-5, -3), -2) 668s [1] TRUE 668s > 668s > identical(rem(0, 0), NaN) 668s [1] TRUE 668s > identical(rem(1, 0), NaN) 668s [1] TRUE 668s > identical(rem(0, 2), 0) 668s [1] TRUE 668s > identical(rem(5, 3), 2) 668s [1] TRUE 668s > identical(rem(5, -3), 2) 668s [1] TRUE 668s > identical(rem(-5, 3), -2) 668s [1] TRUE 668s > identical(rem(-5, -3), -2) 668s [1] TRUE 668s > 668s BEGIN TEST mode.R 668s 668s R version 4.3.2 (2023-10-31) -- "Eye Holes" 668s Copyright (C) 2023 The R Foundation for Statistical Computing 668s Platform: x86_64-pc-linux-gnu (64-bit) 668s 668s R is free software and comes with ABSOLUTELY NO WARRANTY. 668s You are welcome to redistribute it under certain conditions. 668s Type 'license()' or 'licence()' for distribution details. 668s 668s R is a collaborative project with many contributors. 668s Type 'contributors()' for more information and 668s 'citation()' on how to cite R or R packages in publications. 668s 668s Type 'demo()' for some demos, 'help()' for on-line help, or 668s 'help.start()' for an HTML browser interface to help. 668s Type 'q()' to quit R. 668s 668s > ## 668s > ## m o d e . R 668s > ## 668s > 668s > 668s > Mode <- pracma::Mode 668s > 668s > x <- c(1:100, rep(5,3), rep(27,5), rep(71,4), rep(89,2), rep(100, 5)) 668s > identical(Mode(x), 27) 668s [1] TRUE 668s > 668s > x <- as.factor(x) 668s > identical(Mode(x), "27") 668s [1] TRUE 668s > 668s BEGIN TEST nextpow2.R 668s 668s R version 4.3.2 (2023-10-31) -- "Eye Holes" 668s Copyright (C) 2023 The R Foundation for Statistical Computing 668s Platform: x86_64-pc-linux-gnu (64-bit) 668s 668s R is free software and comes with ABSOLUTELY NO WARRANTY. 668s You are welcome to redistribute it under certain conditions. 668s Type 'license()' or 'licence()' for distribution details. 668s 668s R is a collaborative project with many contributors. 668s Type 'contributors()' for more information and 668s 'citation()' on how to cite R or R packages in publications. 668s 668s Type 'demo()' for some demos, 'help()' for on-line help, or 668s 'help.start()' for an HTML browser interface to help. 668s Type 'q()' to quit R. 668s 668s > ### 668s > ### nextpow2.R +++ Test suite +++ 668s > ### 668s > 668s > 668s > test.nextpow2 <- function(input, expected) { 668s + output <- do.call(getFromNamespace("nextpow2", "pracma"), input) 668s + identical(output, expected) 668s + } 668s > 668s > nextpow2.expected.empty <- NULL 668s > nextpow2.expected.0 <- 0 668s > nextpow2.expected.vector <- c(0, 1, 2, 2, 3, 3, 3, 3, 4, 4) 668s > nextpow2.expected.matrix <- matrix(c(0, 1, 1, 0), 2, 2) 668s > nextpow2.expected.16 <- 4 668s > nextpow2.expected.m16 <- 4 668s > nextpow2.expected.m6 <- -19 668s > nextpow2.expected.mq <- -2 668s > 668s > test.nextpow2(list(x=c()), nextpow2.expected.empty) 668s [1] TRUE 668s > test.nextpow2(list(x=0), nextpow2.expected.0) 668s [1] TRUE 668s > test.nextpow2(list(x=1:10), nextpow2.expected.vector) 668s [1] TRUE 668s > test.nextpow2(list(x=matrix(c(1i, 2i, 2+0i, 0+0i), 2, 2)), 668s + nextpow2.expected.matrix) 668s [1] TRUE 668s > test.nextpow2(list(x=16), nextpow2.expected.16) 668s [1] TRUE 668s > test.nextpow2(list(x=-16), nextpow2.expected.m16) 668s [1] TRUE 668s > test.nextpow2(list(x=1e-6), nextpow2.expected.m6) 668s [1] TRUE 668s > test.nextpow2(list(x=-0.25), nextpow2.expected.mq) 668s [1] TRUE 668s > 668s BEGIN TEST norm.R 668s 668s R version 4.3.2 (2023-10-31) -- "Eye Holes" 668s Copyright (C) 2023 The R Foundation for Statistical Computing 668s Platform: x86_64-pc-linux-gnu (64-bit) 668s 668s R is free software and comes with ABSOLUTELY NO WARRANTY. 668s You are welcome to redistribute it under certain conditions. 668s Type 'license()' or 'licence()' for distribution details. 668s 668s R is a collaborative project with many contributors. 668s Type 'contributors()' for more information and 668s 'citation()' on how to cite R or R packages in publications. 668s 668s Type 'demo()' for some demos, 'help()' for on-line help, or 668s 'help.start()' for an HTML browser interface to help. 668s Type 'q()' to quit R. 668s 668s > ## 668s > ## n o r m Test suite 668s > ## 668s > 668s > 668s > Norm <- pracma::Norm 668s > 668s > identical(Norm(c(3, 4)), 5) 668s [1] TRUE 668s > identical(Norm(c(1, 1, 1), p=2), sqrt(3)) 668s [1] TRUE 668s > identical(Norm(1:10, p = 1), sum(1:10)+0.0) 668s [1] TRUE 668s > identical(Norm(1:10, p = 0), Inf) 668s [1] TRUE 668s > identical(Norm(1:10, p = Inf), max(1:10)) 668s [1] TRUE 668s > identical(Norm(1:10, p = -Inf), min(1:10)) 668s [1] TRUE 668s > 668s BEGIN TEST nthroot.R 669s 669s R version 4.3.2 (2023-10-31) -- "Eye Holes" 669s Copyright (C) 2023 The R Foundation for Statistical Computing 669s Platform: x86_64-pc-linux-gnu (64-bit) 669s 669s R is free software and comes with ABSOLUTELY NO WARRANTY. 669s You are welcome to redistribute it under certain conditions. 669s Type 'license()' or 'licence()' for distribution details. 669s 669s R is a collaborative project with many contributors. 669s Type 'contributors()' for more information and 669s 'citation()' on how to cite R or R packages in publications. 669s 669s Type 'demo()' for some demos, 'help()' for on-line help, or 669s 'help.start()' for an HTML browser interface to help. 669s Type 'q()' to quit R. 669s 669s > ### 669s > ### NTHROOT.R +++ Test suite +++ 669s > ### 669s > 669s > 669s > test.nthroot <- function(input, expected) { 669s + output <- do.call(getFromNamespace("nthroot", "pracma"), input) 669s + identical(output, expected) 669s + } 669s > 669s > nthroot.expected.n0 <- c(-1.2) 669s > nthroot.expected.n1 <- c(1, -2, 3) 669s > nthroot.expected.n2 <- c(1, 0, 3) 669s > nthroot.expected.n3 <- c(1, -2, 3) 669s > 669s > test.nthroot(list(x=-1.2^5, n=5), nthroot.expected.n0) 669s [1] TRUE 669s > test.nthroot(list(x=c(1,-2, 3), n=1), nthroot.expected.n1) 669s [1] TRUE 669s > test.nthroot(list(x=c(1, 0, 9), n=2), nthroot.expected.n2) 669s [1] TRUE 669s > test.nthroot(list(x=c(1,-8,27), n=3), nthroot.expected.n3) 669s [1] TRUE 669s > 669s BEGIN TEST pascal.R 669s 669s R version 4.3.2 (2023-10-31) -- "Eye Holes" 669s Copyright (C) 2023 The R Foundation for Statistical Computing 669s Platform: x86_64-pc-linux-gnu (64-bit) 669s 669s R is free software and comes with ABSOLUTELY NO WARRANTY. 669s You are welcome to redistribute it under certain conditions. 669s Type 'license()' or 'licence()' for distribution details. 669s 669s R is a collaborative project with many contributors. 669s Type 'contributors()' for more information and 669s 'citation()' on how to cite R or R packages in publications. 669s 669s Type 'demo()' for some demos, 'help()' for on-line help, or 669s 'help.start()' for an HTML browser interface to help. 669s Type 'q()' to quit R. 669s 669s > ## 669s > ## p a s c a l . R Test Suite 669s > ## 669s > 669s > pascal <- pracma::pascal 669s > nchoosek <- pracma::nchoosek 669s > 669s > identical(pascal(3), 669s + matrix(c(1, 1, 1, 1, 2, 3, 1, 3, 6), 3, 3)) 669s [1] TRUE 669s > 669s > identical(nchoosek(6, 1), choose(6, 1)) 669s [1] TRUE 669s > identical(nchoosek(6, 2), choose(6, 2)) 669s [1] TRUE 669s > identical(nchoosek(6, 3), choose(6, 3)) 669s [1] TRUE 669s > identical(nchoosek(6, 4), choose(6, 4)) 669s [1] TRUE 669s > identical(nchoosek(6, 5), choose(6, 5)) 669s [1] TRUE 669s > identical(nchoosek(6, 6), choose(6, 6)) 669s [1] TRUE 669s > 669s BEGIN TEST pchip.R 669s 669s R version 4.3.2 (2023-10-31) -- "Eye Holes" 669s Copyright (C) 2023 The R Foundation for Statistical Computing 669s Platform: x86_64-pc-linux-gnu (64-bit) 669s 669s R is free software and comes with ABSOLUTELY NO WARRANTY. 669s You are welcome to redistribute it under certain conditions. 669s Type 'license()' or 'licence()' for distribution details. 669s 669s R is a collaborative project with many contributors. 669s Type 'contributors()' for more information and 669s 'citation()' on how to cite R or R packages in publications. 669s 669s Type 'demo()' for some demos, 'help()' for on-line help, or 669s 'help.start()' for an HTML browser interface to help. 669s Type 'q()' to quit R. 669s 669s > ## 669s > ## p c h i p . R Test suite 669s > ## 669s > 669s > 669s > pchip <- pracma::pchip 669s > 669s > x <- c(1, 2, 3, 4, 5, 6) 669s > y <- c(16, 18, 21, 17, 15, 12) 669s > 669s > xs <- c(1.5, 2.5, 3.5, 4.5, 5.5) 669s > ys <- pchip(x, y, xs) 669s > # ys <- interp1(x, y, xs, method="cubic") # the same 669s > # 16.88750 19.80000 19.33333 15.96667 13.63750 669s > 669s > yml <- c(16.887499999999999, 19.800000000000001, 19.333333333333332, 669s + 15.966666666666667, 13.637499999999999) 669s > 669s > all.equal(ys, yml, tolerance = 1e-7) 669s [1] TRUE 669s > 669s BEGIN TEST perms.R 669s 669s R version 4.3.2 (2023-10-31) -- "Eye Holes" 669s Copyright (C) 2023 The R Foundation for Statistical Computing 669s Platform: x86_64-pc-linux-gnu (64-bit) 669s 669s R is free software and comes with ABSOLUTELY NO WARRANTY. 669s You are welcome to redistribute it under certain conditions. 669s Type 'license()' or 'licence()' for distribution details. 669s 669s R is a collaborative project with many contributors. 669s Type 'contributors()' for more information and 669s 'citation()' on how to cite R or R packages in publications. 669s 669s Type 'demo()' for some demos, 'help()' for on-line help, or 669s 'help.start()' for an HTML browser interface to help. 669s Type 'q()' to quit R. 669s 669s > ## 669s > ## p e r m s . R Test Suite 669s > ## 669s > 669s > perms <- pracma::perms 669s > randperm <- pracma::randperm 669s > 669s > identical(perms(2), matrix(2, 1, 1)) 669s [1] TRUE 669s > identical(perms(c(1, 2)), matrix(c(2, 1, 1, 2), 2, 2)) 669s [1] TRUE 669s > identical(nrow(perms(1:6)), 720L) 669s [1] TRUE 669s > 669s > all(c(1,2,3) %in% randperm(c(1,2,3))) 669s [1] TRUE 669s > 669s BEGIN TEST piecewise.R 669s 669s R version 4.3.2 (2023-10-31) -- "Eye Holes" 669s Copyright (C) 2023 The R Foundation for Statistical Computing 669s Platform: x86_64-pc-linux-gnu (64-bit) 669s 669s R is free software and comes with ABSOLUTELY NO WARRANTY. 669s You are welcome to redistribute it under certain conditions. 669s Type 'license()' or 'licence()' for distribution details. 669s 669s R is a collaborative project with many contributors. 669s Type 'contributors()' for more information and 669s 'citation()' on how to cite R or R packages in publications. 669s 669s Type 'demo()' for some demos, 'help()' for on-line help, or 669s 'help.start()' for an HTML browser interface to help. 669s Type 'q()' to quit R. 669s 669s > ## 669s > ## p i e c e w i s e . R Test suite 669s > ## 669s > 669s > 669s > piecewise <- pracma::piecewise 669s > 669s > x <- c(0, 1, 2, 3, 4, 5) 669s > y <- c(1, 1, -1, 0, 1, 0) 669s > identical(piecewise(x, y)$area, 1.5) 669s [1] TRUE 669s > identical(piecewise(x, y)$zeros, c(1.5, 3, 5)) 669s [1] TRUE 669s > identical(piecewise(x, y, abs = TRUE)$area, 3.0) 669s [1] TRUE 669s > identical(piecewise(x, y, abs = TRUE)$zeros, c(1.5, 3, 5)) 669s [1] TRUE 669s > 669s BEGIN TEST poly.R 669s 669s R version 4.3.2 (2023-10-31) -- "Eye Holes" 669s Copyright (C) 2023 The R Foundation for Statistical Computing 669s Platform: x86_64-pc-linux-gnu (64-bit) 669s 669s R is free software and comes with ABSOLUTELY NO WARRANTY. 669s You are welcome to redistribute it under certain conditions. 669s Type 'license()' or 'licence()' for distribution details. 669s 669s R is a collaborative project with many contributors. 669s Type 'contributors()' for more information and 669s 'citation()' on how to cite R or R packages in publications. 669s 669s Type 'demo()' for some demos, 'help()' for on-line help, or 669s 'help.start()' for an HTML browser interface to help. 669s Type 'q()' to quit R. 669s 670s > ### 670s > ### Poly.R +++ Test suite +++ 670s > ### 670s > 670s > 670s > test.Poly <- function(input, expected) { 670s + output <- do.call(getFromNamespace("Poly", "pracma"), input) 670s + identical(output, expected) 670s + } 670s > 670s > Poly.expected.empty <- 1 670s > Poly.expected.1 <- c(1, -6, 11, -6) 670s > #Poly.expected.2 <- error 670s > Poly.expected.3 <- c(1, 0, 0, 0, -1) 670s > Poly.expected.4 <- c(1, -10, 35, -50, 24) 670s > Poly.expected.5 <- c(1, -4, 6, -4, 1) 670s > Poly.expected.6 <- c(1, -5) 670s > 670s > test.Poly(list(x=c()), Poly.expected.empty) 670s [1] TRUE 670s > test.Poly(list(x=c(1,2,3)), Poly.expected.1) 670s [1] TRUE 670s > #test.Poly(list(x=matrix(1:6, 2, 3)), Poly.expected.2) 670s > test.Poly(list(x=c(1,-1,1i,-1i)), Poly.expected.3) 670s [1] TRUE 670s > test.Poly(list(x=c(1,2,3,4)), Poly.expected.4) 670s [1] TRUE 670s > test.Poly(list(x=diag(4)), Poly.expected.5) 670s [1] TRUE 670s > test.Poly(list(x=5), Poly.expected.6) 670s [1] TRUE 670s > 670s BEGIN TEST polyadd.R 670s 670s R version 4.3.2 (2023-10-31) -- "Eye Holes" 670s Copyright (C) 2023 The R Foundation for Statistical Computing 670s Platform: x86_64-pc-linux-gnu (64-bit) 670s 670s R is free software and comes with ABSOLUTELY NO WARRANTY. 670s You are welcome to redistribute it under certain conditions. 670s Type 'license()' or 'licence()' for distribution details. 670s 670s R is a collaborative project with many contributors. 670s Type 'contributors()' for more information and 670s 'citation()' on how to cite R or R packages in publications. 670s 670s Type 'demo()' for some demos, 'help()' for on-line help, or 670s 'help.start()' for an HTML browser interface to help. 670s Type 'q()' to quit R. 670s 670s > ## 670s > ## p o l y m u l . R Test suite 670s > ## 670s > 670s > 670s > polyadd <- pracma::polyadd 670s > 670s > identical(polyadd(c(1, 1, 1), 1), c(1, 1, 2)) 670s [1] TRUE 670s > identical(polyadd(c(1, 1, 1), c(0, 1)), c(1, 1, 2)) 670s [1] TRUE 670s > identical(polyadd(c(0.5, 1, 1), c(0.5, 1, -1)), c(1, 2, 0)) 670s [1] TRUE 670s > identical(polyadd(c(0.5, 1, 1), c(-0.5, -1, 1)), c(2)) 670s [1] TRUE 670s > identical(polyadd(c(0, 0, 1, 2, 2), c(0, 1, 2, 3, 4)), c(1, 3, 5, 6)) 670s [1] TRUE 670s > 670s BEGIN TEST polyarea.R 670s 670s R version 4.3.2 (2023-10-31) -- "Eye Holes" 670s Copyright (C) 2023 The R Foundation for Statistical Computing 670s Platform: x86_64-pc-linux-gnu (64-bit) 670s 670s R is free software and comes with ABSOLUTELY NO WARRANTY. 670s You are welcome to redistribute it under certain conditions. 670s Type 'license()' or 'licence()' for distribution details. 670s 670s R is a collaborative project with many contributors. 670s Type 'contributors()' for more information and 670s 'citation()' on how to cite R or R packages in publications. 670s 670s Type 'demo()' for some demos, 'help()' for on-line help, or 670s 'help.start()' for an HTML browser interface to help. 670s Type 'q()' to quit R. 670s 670s > ### 670s > ### polyarea.R +++ Test suite +++ 670s > ### 670s > 670s > 670s > test.polyarea <- function(input, expected) { 670s + output <- do.call(getFromNamespace("polyarea", "pracma"), input) 670s + identical(output, expected) 670s + } 670s > 670s > polyarea.expected.empty <- 0 670s > polyarea.expected.gen1 <- 3.5 670s > polyarea.expected.gen2 <- 4 670s > polyarea.expected.mtrx <- c(4, 4) 670s > polyarea.expected.cmpl <- 0.5 670s > 670s > test.polyarea(list(x=c(), y=c()), polyarea.expected.empty) 670s [1] TRUE 670s > test.polyarea(list(x=c(0,2,2,1,0), y=c(0,-1,2,1,1)), polyarea.expected.gen1) 670s [1] TRUE 670s > test.polyarea(list(x=matrix(c(1,1,3,3,1), 5, 1), 670s + y=matrix(c(1,3,3,1,1), 5, 1)), 670s + polyarea.expected.gen2) 670s [1] FALSE 670s > test.polyarea(list(x=matrix(c(1,3,3,1,1,1,3,3), 4, 2), 670s + y=matrix(c(1,1,3,3,1,3,3,1), 4, 2)), 670s + polyarea.expected.mtrx) 670s [1] FALSE 670s > test.polyarea(list(x=c(0,1,1,0), y=c(0,0,1i,0)), polyarea.expected.cmpl) 670s [1] FALSE 670s > 670s BEGIN TEST polyder.R 670s 670s R version 4.3.2 (2023-10-31) -- "Eye Holes" 670s Copyright (C) 2023 The R Foundation for Statistical Computing 670s Platform: x86_64-pc-linux-gnu (64-bit) 670s 670s R is free software and comes with ABSOLUTELY NO WARRANTY. 670s You are welcome to redistribute it under certain conditions. 670s Type 'license()' or 'licence()' for distribution details. 670s 670s R is a collaborative project with many contributors. 670s Type 'contributors()' for more information and 670s 'citation()' on how to cite R or R packages in publications. 670s 670s Type 'demo()' for some demos, 'help()' for on-line help, or 670s 'help.start()' for an HTML browser interface to help. 670s Type 'q()' to quit R. 670s 670s > ### 670s > ### polyder.R +++ Test suite +++ 670s > ### 670s > 670s > 670s > test.polyder <- function(input, expected) { 670s + output <- do.call(getFromNamespace("polyder", "pracma"), input) 670s + identical(output, expected) 670s + } 670s > 670s > polyder.expected.0 <- 0 670s > polyder.expected.1 <- 0 670s > polyder.expected.5 <- c(4, 3, 2, 1) 670s > polyder.expected.3 <- c(2, 0) 670s > polyder.expected.2 <- c(12, 36, 42, 18) 670s > 670s > 670s > test.polyder(list(p=c()), polyder.expected.0) 670s [1] TRUE 670s > test.polyder(list(p=c(1)), polyder.expected.1) 670s [1] TRUE 670s > test.polyder(list(p=c(1,1,1,1,1)), polyder.expected.5) 670s [1] TRUE 670s > test.polyder(list(p=c(1,0,0), q=c(0,0,1)), polyder.expected.3) 670s [1] TRUE 670s > test.polyder(list(p=c(3,6,9), q=c(1,2,0)), polyder.expected.2) 670s [1] TRUE 670s > 670s BEGIN TEST polyfit.R 670s 670s R version 4.3.2 (2023-10-31) -- "Eye Holes" 670s Copyright (C) 2023 The R Foundation for Statistical Computing 670s Platform: x86_64-pc-linux-gnu (64-bit) 670s 670s R is free software and comes with ABSOLUTELY NO WARRANTY. 670s You are welcome to redistribute it under certain conditions. 670s Type 'license()' or 'licence()' for distribution details. 670s 670s R is a collaborative project with many contributors. 670s Type 'contributors()' for more information and 670s 'citation()' on how to cite R or R packages in publications. 670s 670s Type 'demo()' for some demos, 'help()' for on-line help, or 670s 'help.start()' for an HTML browser interface to help. 670s Type 'q()' to quit R. 670s 670s > ### 670s > ### polyfit.R +++ Test suite +++ 670s > ### 670s > 670s > 670s > test.polyfit <- function(input, expected) { 670s + output <- do.call(getFromNamespace("polyfit", "pracma"), input) 670s + identical(all.equal(output, 670s + expected, 670s + tolerance=1e-7), 670s + TRUE 670s + ) 670s + } 670s > 670s > polyfit.expected.n1 <- c(1, 0) 670s > polyfit.expected.n23 <- c(0, 1, 1, 1) 670s > polyfit.expected.n4 <- c(-1, 0, 7, 0, 0) / 6 670s > polyfit.expected.mat <- c(0, 1, -14, 65, -112, 60) / 12 670s > 670s > test.polyfit(list(x=c(1,2,3), y=c(1,2,3)), polyfit.expected.n1) 670s [1] TRUE 670s > test.polyfit(list(x=c(-2,-1,0,1,2), y=c(3,1,1,3,7), n=3), polyfit.expected.n23) 671s [1] TRUE 671s > test.polyfit(list(x=c(-2,-1,0,1,2), y=c(2,1,0,1,2), n=4), polyfit.expected.n4) 671s [1] TRUE 671s > test.polyfit(list(x=matrix(1:6, nrow=2, ncol=3, byrow=TRUE), 671s + y=matrix(c(0,0,1,1,0,0), nrow=2, ncol=3, byrow=TRUE), 671s + n=5), polyfit.expected.mat) 671s [1] TRUE 671s > 671s > 671s BEGIN TEST polyint.R 671s 671s R version 4.3.2 (2023-10-31) -- "Eye Holes" 671s Copyright (C) 2023 The R Foundation for Statistical Computing 671s Platform: x86_64-pc-linux-gnu (64-bit) 671s 671s R is free software and comes with ABSOLUTELY NO WARRANTY. 671s You are welcome to redistribute it under certain conditions. 671s Type 'license()' or 'licence()' for distribution details. 671s 671s R is a collaborative project with many contributors. 671s Type 'contributors()' for more information and 671s 'citation()' on how to cite R or R packages in publications. 671s 671s Type 'demo()' for some demos, 'help()' for on-line help, or 671s 'help.start()' for an HTML browser interface to help. 671s Type 'q()' to quit R. 671s 671s > ### 671s > ### polyint.R +++ Test suite +++ 671s > ### 671s > 671s > 671s > test.polyint <- function(input, expected) { 671s + output <- do.call(getFromNamespace("polyint", "pracma"), input) 671s + identical(output, expected) 671s + } 671s > 671s > polyint.expected.1 <- c(1, 0) 671s > polyint.expected.2 <- c(1/6, 1/5, 1/4, 1/3, 1/2, 1, 1) 671s > 671s > test.polyint(list(p=c(1)), polyint.expected.1) 671s [1] TRUE 671s > test.polyint(list(p=c(1,1,1,1,1,1), k=1), polyint.expected.2) 671s [1] TRUE 671s > 671s BEGIN TEST polymul.R 671s 671s R version 4.3.2 (2023-10-31) -- "Eye Holes" 671s Copyright (C) 2023 The R Foundation for Statistical Computing 671s Platform: x86_64-pc-linux-gnu (64-bit) 671s 671s R is free software and comes with ABSOLUTELY NO WARRANTY. 671s You are welcome to redistribute it under certain conditions. 671s Type 'license()' or 'licence()' for distribution details. 671s 671s R is a collaborative project with many contributors. 671s Type 'contributors()' for more information and 671s 'citation()' on how to cite R or R packages in publications. 671s 671s Type 'demo()' for some demos, 'help()' for on-line help, or 671s 'help.start()' for an HTML browser interface to help. 671s Type 'q()' to quit R. 671s 671s > ## 671s > ## p o l y m u l . R Test suite 671s > ## 671s > 671s > 671s > polymul <- pracma::polymul 671s > 671s > identical(polymul(c(0.5), c(2, 4, 8)), c(1, 2, 4)) 671s [1] TRUE 671s > identical(polymul(c(2.5, 1.5, 0.5), c(2)), c(5, 3, 1)) 671s [1] TRUE 671s > identical(polymul(c(1, 1, 1), c(0, 1, 1, 1)), c(1, 2, 3, 2, 1)) 671s [1] TRUE 671s > identical(polymul(c(1, 0, 0), c(0, 0, 1)), c(1, 0, 0)) 671s [1] TRUE 671s > 671s BEGIN TEST polyval.R 671s 671s R version 4.3.2 (2023-10-31) -- "Eye Holes" 671s Copyright (C) 2023 The R Foundation for Statistical Computing 671s Platform: x86_64-pc-linux-gnu (64-bit) 671s 671s R is free software and comes with ABSOLUTELY NO WARRANTY. 671s You are welcome to redistribute it under certain conditions. 671s Type 'license()' or 'licence()' for distribution details. 671s 671s R is a collaborative project with many contributors. 671s Type 'contributors()' for more information and 671s 'citation()' on how to cite R or R packages in publications. 671s 671s Type 'demo()' for some demos, 'help()' for on-line help, or 671s 'help.start()' for an HTML browser interface to help. 671s Type 'q()' to quit R. 671s 671s > ### 671s > ### polyval.R +++ Test suite +++ 671s > ### 671s > 671s > 671s > test.polyval <- function(input, expected) { 671s + output <- do.call(getFromNamespace("polyval", "pracma"), input) 671s + identical(output, expected) 671s + } 671s > 671s > polyval.expected.empty1 <- c() 671s > polyval.expected.empty2 <- c(0, 0) 671s > polyval.expected.vec <- c(3, 1, 1, 3, 7) 671s > polyval.expected.mat <- matrix(c(1, 4, 9, 16), nrow=2, ncol=2) 671s > 671s > test.polyval(list(p=c(1,1), x=c()), polyval.expected.empty1) 671s [1] TRUE 671s > test.polyval(list(p=c(), x=c(1,1)), polyval.expected.empty2) 671s [1] TRUE 671s > test.polyval(list(p=c(1,1,1), x=-2:2), polyval.expected.vec) 671s [1] TRUE 671s > test.polyval(list(p=c(1,0,0), x=matrix(1:4, 2, 2)), polyval.expected.mat) 671s [1] TRUE 671s > 671s BEGIN TEST pow2.R 671s 671s R version 4.3.2 (2023-10-31) -- "Eye Holes" 671s Copyright (C) 2023 The R Foundation for Statistical Computing 671s Platform: x86_64-pc-linux-gnu (64-bit) 671s 671s R is free software and comes with ABSOLUTELY NO WARRANTY. 671s You are welcome to redistribute it under certain conditions. 671s Type 'license()' or 'licence()' for distribution details. 671s 671s R is a collaborative project with many contributors. 671s Type 'contributors()' for more information and 671s 'citation()' on how to cite R or R packages in publications. 671s 671s Type 'demo()' for some demos, 'help()' for on-line help, or 671s 'help.start()' for an HTML browser interface to help. 671s Type 'q()' to quit R. 671s 671s > ### 671s > ### pow2.R +++ Test suite +++ 671s > ### 671s > 671s > 671s > test.pow2 <- function(input, expected) { 671s + output <- do.call(getFromNamespace("pow2", "pracma"), input) 671s + identical(output, expected) 671s + } 671s > 671s > pow2.expected.00 <- 0 671s > pow2.expected.m1 <- -0.5 671s > pow2.expected.f <- c(1, 2, 4, 8) 671s > pow2.expected.fe <- c(0, 0.5, -8, 24) 671s > pow2.expected.c <- c(2^(1i), 2^(-1i)) 671s > 671s > test.pow2(list(f=0, e=0), pow2.expected.00) 671s [1] TRUE 671s > test.pow2(list(f=-1, e=-1), pow2.expected.m1) 671s [1] TRUE 671s > test.pow2(list(f=c(0,1,2,3)), pow2.expected.f) 671s [1] TRUE 671s > test.pow2(list(f=c(0,1,-2,3), e=c(0,-1,2,3)), pow2.expected.fe) 671s [1] TRUE 671s > test.pow2(list(f=c(1i, -1i)), pow2.expected.c) 671s [1] TRUE 671s > 671s BEGIN TEST primes.R 671s 671s R version 4.3.2 (2023-10-31) -- "Eye Holes" 671s Copyright (C) 2023 The R Foundation for Statistical Computing 671s Platform: x86_64-pc-linux-gnu (64-bit) 671s 671s R is free software and comes with ABSOLUTELY NO WARRANTY. 671s You are welcome to redistribute it under certain conditions. 671s Type 'license()' or 'licence()' for distribution details. 671s 671s R is a collaborative project with many contributors. 671s Type 'contributors()' for more information and 671s 'citation()' on how to cite R or R packages in publications. 671s 671s Type 'demo()' for some demos, 'help()' for on-line help, or 671s 'help.start()' for an HTML browser interface to help. 671s Type 'q()' to quit R. 671s 671s > ### 671s > ### PRIMES.R +++ Test suite +++ 671s > ### 671s > 671s > 671s > test.primes <- function(input, expected) { 671s + output <- do.call(getFromNamespace("primes", "pracma"), input) 671s + identical(output, expected) 671s + } 671s > 671s > primes.expected.n1 <- NULL 671s > primes.expected.n2 <- 2 671s > primes.expected.n3 <- c(2, 3) 671s > primes.expected.n5 <- c(2, 3, 5) 671s > primes.expected.n8 <- c(2, 3, 5, 7) 671s > primes.expected.101 <- c( 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 671s + 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97,101) 671s > 671s > test.primes(list(n=1), primes.expected.n1) 671s [1] TRUE 671s > test.primes(list(n=2), primes.expected.n2) 671s [1] TRUE 671s > test.primes(list(n=3), primes.expected.n3) 671s [1] TRUE 671s > test.primes(list(n=5), primes.expected.n5) 671s [1] TRUE 671s > test.primes(list(n=8), primes.expected.n8) 671s [1] TRUE 671s > test.primes(list(n=101), primes.expected.101) 671s [1] TRUE 671s > 671s BEGIN TEST quad.R 672s 672s R version 4.3.2 (2023-10-31) -- "Eye Holes" 672s Copyright (C) 2023 The R Foundation for Statistical Computing 672s Platform: x86_64-pc-linux-gnu (64-bit) 672s 672s R is free software and comes with ABSOLUTELY NO WARRANTY. 672s You are welcome to redistribute it under certain conditions. 672s Type 'license()' or 'licence()' for distribution details. 672s 672s R is a collaborative project with many contributors. 672s Type 'contributors()' for more information and 672s 'citation()' on how to cite R or R packages in publications. 672s 672s Type 'demo()' for some demos, 'help()' for on-line help, or 672s 'help.start()' for an HTML browser interface to help. 672s Type 'q()' to quit R. 672s 672s > ## 672s > ## q u a d . R Test suite 672s > ## 672s > 672s > 672s > quad <- pracma::quad 672s > 672s > all.equal(quad(sin, 0, pi), 2, tol = 1e-7) 672s [1] TRUE 672s > all.equal(quad(sin, 0, 2*pi), 0, tol = 1e-7) 672s [1] TRUE 672s > all.equal(quad(exp, 0, 1), exp(1) - 1, tol=1e-7) 672s [1] TRUE 672s > 672s BEGIN TEST quadrature.R 672s 672s R version 4.3.2 (2023-10-31) -- "Eye Holes" 672s Copyright (C) 2023 The R Foundation for Statistical Computing 672s Platform: x86_64-pc-linux-gnu (64-bit) 672s 672s R is free software and comes with ABSOLUTELY NO WARRANTY. 672s You are welcome to redistribute it under certain conditions. 672s Type 'license()' or 'licence()' for distribution details. 672s 672s R is a collaborative project with many contributors. 672s Type 'contributors()' for more information and 672s 'citation()' on how to cite R or R packages in publications. 672s 672s Type 'demo()' for some demos, 'help()' for on-line help, or 672s 'help.start()' for an HTML browser interface to help. 672s Type 'q()' to quit R. 672s 672s > ## 672s > ## q u a d r a t u r e . R Test suite 672s > ## 672s > 672s > 672s > quad <- pracma::quad 672s > quadl <- pracma::quadl 672s > quadgk <- pracma::quadgk 672s > quadgr <- pracma::quadgr 672s > quadinf <- pracma::quadinf 672s > quad2d <- pracma::quad2d 672s > dblquad <- pracma::dblquad 672s > 672s > simpson2d <- pracma::simpson2d 672s > simpadpt <- pracma::simpadpt 672s > gauss_kronrod <- pracma::gauss_kronrod 672s > clenshaw_curtis <- pracma::clenshaw_curtis 672s > romberg <- pracma::romberg 672s > 672s > gaussLegendre <- pracma::gaussLegendre 672s > gaussHermite <- pracma::gaussHermite 672s > gaussLaguerre <- pracma::gaussLaguerre 672s > 672s > ## F i n i t e I n t e r v a l s 672s > 672s > f1 <- function(x) exp(x)*sin(x) # [0, pi] 12.0703463163896 = 1/2*(1+e^pi) 672s > f2 <- pracma::runge # [-1, 1] 0.549360306778006 672s > f3 <- function(x) 1/(x^3 - 2*x - 5) # [0, 2] -0.460501533846733 672s > f4 <- function(x) abs(sin(10*x)) # [0, pi] 2.0 672s > 672s > # quad (Adaptive Simpson) 672s > all.equal(quad(f1, 0, pi, tol=1e-12), 12.0703463163896, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(quad(f2, -1, 1, tol=1e-12), 0.549360306778006, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(quad(f3, 0, 2, tol=1e-12), -0.460501533846733, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(quad(f4, 0, pi, tol=1e-12), 2.0, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > 672s > # quadl (Adaptive Lobatto) 672s > all.equal(quadl(f1, 0, pi, tol=1e-9), 12.0703463163896, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(quadl(f2, -1, 1, tol=1e-9), 0.549360306778006, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(quadl(f3, 0, 2, tol=1e-9), -0.460501533846733, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(quadl(f4, 0, pi, tol=1e-12), 2.0, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > 672s > # quadgr (Gauss-Richardson) 672s > all.equal(quadgr(f1, 0, pi, tol=1e-12)$value, 12.0703463163896, 672s + tolerance = 1e-13) 672s [1] TRUE 672s > all.equal(quadgr(f2, -1, 1, tol=1e-12)$value, 0.549360306778006, 672s + tolerance = 1e-15) 672s [1] TRUE 672s > all.equal(quadgr(f3, 0, 2, tol=1e-12)$value, -0.460501533846733, 672s + tolerance = 1e-15) 672s [1] TRUE 672s > all.equal(quadgr(f4, 0, pi, tol=1e-12)$value, 2.0, 672s + tolerance = 1e-15) 672s [1] TRUE 672s > 672s > # quadgk (Adaptive Gauss-Kronrod) 672s > all.equal(quadgk(f1, 0, pi), 12.0703463163896, 672s + tolerance = 1e-13) 672s [1] TRUE 672s > all.equal(quadgk(f2, -1, 1), 0.549360306778006, 672s + tolerance = 1e-15) 672s [1] TRUE 672s > all.equal(quadgk(f3, 0, 2), -0.460501533846733, 672s + tolerance = 1e-13) 672s [1] TRUE 672s > all.equal(quadgk(f4, 0, pi, tol = 1e-12), 2.0, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > 672s > # Adaptive Simpson (simpadpt) 672s > all.equal(simpadpt(f1, 0, pi, tol=1e-12), 12.0703463163896, 672s + tolerance = 1e-13) 672s [1] TRUE 672s > all.equal(simpadpt(f2, -1, 1, tol=1e-12), 0.549360306778006, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(simpadpt(f3, 0, 2, tol=1e-12), -0.460501533846733, 672s + tolerance = 1e-13) 672s [1] TRUE 672s > all.equal(simpadpt(f4, 0, pi, tol=1e-12), 2.0, 672s + tolerance = 1e-14) 672s [1] TRUE 672s > 672s > # Gauss-Kronrod 672s > all.equal(gauss_kronrod(f1, 0, pi)$value, 12.0703463163896, 672s + tolerance = 1e-13) 672s [1] TRUE 672s > all.equal(gauss_kronrod(f2, -1, 1)$value, 0.549360306778006, # BAD 672s + tolerance = 1e-2) 672s [1] TRUE 672s > all.equal(gauss_kronrod(f3, 0, 2)$value, -0.460501533846733, # Bad 672s + tolerance = 1e-5) 672s [1] TRUE 672s > all.equal(gauss_kronrod(f4, 0, pi)$value, 2.0, # BAD 672s + tolerance = 1e-0) 672s [1] TRUE 672s > 672s > # Clenshaw-Curtis 672s > all.equal(clenshaw_curtis(f1, 0, pi, n = 128), 12.0703463163896, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(clenshaw_curtis(f2, -1, 1, n = 128), 0.549360306778006, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(clenshaw_curtis(f3, 0, 2, n = 128), -0.460501533846733, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(clenshaw_curtis(f4, 0, pi, n = 1024), 2.0, # Bad 672s + tolerance = 2e-5) 672s [1] TRUE 672s > 672s > # romberg 672s > all.equal(romberg(f1, 0, pi, tol=1e-12)$value, 12.0703463163896, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(romberg(f2, -1, 1, tol=1e-12)$value, 0.549360306778006, 672s + tolerance = 1e-12) 672s [1] "Mean relative difference: 1.660053e-10" 672s > all.equal(romberg(f3, 0, 2, tol=1e-12)$value, -0.460501533846733, # BAD 672s + tolerance = 1e-3) 672s [1] TRUE 672s > all.equal(romberg(f4, 0, pi, tol=1e-12)$value, 2.0, 672s + tolerance = 1e-12) 672s [1] "Mean absolute difference: 2" 672s > 672s > f5 <- function(x) log(x)*sin(x)/x # pi/2 * gamma , cannot be computed ! 672s > f6 <- function(x) sin(x)^2 * exp(-x) # [0, Inf] , 0.4 672s > f7 <- function(x) sin(x)^2 * exp(-x^2) # [-Inf, Inf] , (e-1)*sqrt(pi)/(4*e) 672s > x7 <- (exp(1)-1) * sqrt(pi) / (2*exp(1)) 672s > 672s > # quadinf 672s > all.equal(quadinf(f6, 0, Inf), 0.4, tolerance = 1e-15) 672s [1] "Modes: list, numeric" 672s [2] "names for target but not for current" 672s [3] "Length mismatch: comparison on first 1 components" 672s > all.equal(quadinf(f7, -Inf, Inf), x7, tolerance = 1e-15) 672s [1] "Modes: list, numeric" 672s [2] "names for target but not for current" 672s [3] "Length mismatch: comparison on first 1 components" 672s [4] "Component 1: Mean relative difference: 5.529293e-14" 672s > 672s > all.equal(quadgr(f6, 0, Inf)$value, 0.4, tolerance = 1e-11) 672s [1] TRUE 672s Warning messages: 672s 1: In sin(x) : NaNs produced 672s 2: In sin(x) : NaNs produced 672s 3: In sin(x) : NaNs produced 672s 4: In sin(x) : NaNs produced 672s > all.equal(quadgr(f7, -Inf, Inf)$value, x7, tolerance = 1e-9) 672s [1] TRUE 672s > 672s > Warning messages: 672s 1: In sin(x) : NaNs produced 672s 2: In sin(x) : NaNs produced 672s 3: In sin(x) : NaNs produced 672s 4: In sin(x) : NaNs produced 672s 5: In sin(x) : NaNs produced 672s 6: In sin(x) : NaNs produced 672s 7: In sin(x) : NaNs produced 672s gL <- gaussLaguerre(64) 672s > all.equal(sum(gL$w * sin(gL$x)^2), 0.4, tolerance = 1e-15) 672s [1] TRUE 672s > gH <- gaussHermite(64) 672s > all.equal(sum(gH$w * sin(gH$x)^2), x7, tolerance = 1e-14) 672s [1] TRUE 672s > 672s > f8 <- function(x, y) y * sin(x) # [0, pi/2]x[0, 1] , 1/2 672s > f9 <- function(x, y) ifelse(x^2 + y^2 <= 1, 1-x^2-y^2, 0) 672s > 672s > # quad2d 672s > all.equal(quad2d(f8, 0, pi/2, 0, 1), 0.5, tolerance = 1e-15) 672s [1] TRUE 672s > all.equal(quad2d(f9, -1, 1, 0, 1, n = 128), pi/4, tolerance = 1e-6) 672s [1] TRUE 672s > 672s > # dblquad 672s > all.equal(dblquad(f8, 0, pi/2, 0, 1), 0.5, tolerance = 1e-15) 672s [1] TRUE 672s > #all.equal(dblquad(f9, -1, 1, 0, 1), pi/4, tolerance = 1e-6) 672s > # disabled because of problems with Fedora and Solaris 672s > 672s > # simpson2d 672s > all.equal(simpson2d(f8, 0, pi/2, 0, 1), 0.5, tolerance = 1e-9) 672s [1] TRUE 672s > all.equal(simpson2d(f9, -1, 1, 0, 1), pi/4, tolerance = 1e-5) 672s [1] TRUE 672s > 672s > # Integrals with singularities at boundaries: 672s > f11 <- function(t) log(1-t) / t # [1, 0] pi^2/6 , dilogarithm 672s > f12 <- function(t) log(-log(t)) # [0, 1] gamma = 0.57721 56649 01532 ... 672s > f13 <- function(t) 1 / sqrt(t) # [0, 1] 2.0 672s > 672s > all.equal(quad(f11, 1, 0, tol = 1e-12), 1.64493406684823, 672s + tolerance = 1e-10) 672s [1] TRUE 672s > all.equal(quad(f12, 0, 1, tol = 1e-12), -0.577215664901533, 672s + tolerance = 5e-10) 672s [1] TRUE 672s > all.equal(quad(f13, 0, 1, tol = 1e-12), 2.0, 672s + tolerance = 1e-4) # Bad 672s [1] TRUE 672s > 672s > all.equal(quadl(f11, 1, 0, tol = 1e-12), 1.64493406684823, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(quadl(f12, 0, 1, tol = 1e-12), -0.577215664901533, 672s + tolerance = 5e-12) 672s [1] TRUE 672s > all.equal(quadl(f13, 0, 1, tol = 1e-12), 2.0, 672s + tolerance = 1e-7) # Bad 672s [1] TRUE 672s > 672s > all.equal(quadgr(f11, 1, 0, tol = 1e-12)$value, 1.64493406684823, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > all.equal(quadgr(f12, 0, 1, tol = 1e-12)$value, -0.577215664901533, 672s + tolerance = 5e-12) 672s [1] TRUE 672s > all.equal(quadgr(f13, 0, 1, tol = 1e-12)$value, 2.0, 672s + tolerance = 1e-12) 672s [1] TRUE 672s > 672s > all.equal(simpadpt(f11, 1, 0, tol = 1e-12), 1.64493406684823, 672s + tolerance = 1e-11) 672s [1] TRUE 672s > all.equal(simpadpt(f12, 0, 1, tol = 1e-12), -0.577215664901533, 672s + tolerance = 5e-11) 672s [1] TRUE 672s > all.equal(simpadpt(f13, 0, 1, tol = 1e-10), 2.0, 672s + tolerance = 1e-7) # Bad 672s [1] TRUE 672s > 672s > ## E o F 672s > 672s BEGIN TEST rank.R 672s 672s R version 4.3.2 (2023-10-31) -- "Eye Holes" 672s Copyright (C) 2023 The R Foundation for Statistical Computing 672s Platform: x86_64-pc-linux-gnu (64-bit) 672s 672s R is free software and comes with ABSOLUTELY NO WARRANTY. 672s You are welcome to redistribute it under certain conditions. 672s Type 'license()' or 'licence()' for distribution details. 672s 672s R is a collaborative project with many contributors. 672s Type 'contributors()' for more information and 672s 'citation()' on how to cite R or R packages in publications. 672s 672s Type 'demo()' for some demos, 'help()' for on-line help, or 672s 'help.start()' for an HTML browser interface to help. 672s Type 'q()' to quit R. 672s 672s > ## 672s > ## r a n k . r Test suite 672s > ## 672s > 672s > 672s > Rank <- pracma::Rank 672s > nullspace <- pracma::nullspace 672s > 672s > magic <- pracma::magic 672s > all.equal(Rank(c()), 0) 672s [1] TRUE 672s > r <- numeric(8) 672s > for (i in 3:10){ 672s + r[i-2] <- Rank(magic(i)) 672s + } 672s > identical(r, c(3, 3, 5, 5, 7, 3, 9, 7)) 672s [1] TRUE 672s > 672s > hilb <- pracma::hilb 672s > identical(Rank(hilb(6)), 6L) 672s [1] TRUE 672s > 672s > # Vorzeichenwechsel moeglich 672s > # N <- nullspace(magic(4)) 672s > # all.equal(as.numeric(N), c(0.2236, 0.6708, -0.6708, -0.2236), 672s > # tolerance = 1e-5) 672s > 672s BEGIN TEST rectint.R 672s 672s R version 4.3.2 (2023-10-31) -- "Eye Holes" 672s Copyright (C) 2023 The R Foundation for Statistical Computing 672s Platform: x86_64-pc-linux-gnu (64-bit) 672s 672s R is free software and comes with ABSOLUTELY NO WARRANTY. 672s You are welcome to redistribute it under certain conditions. 672s Type 'license()' or 'licence()' for distribution details. 672s 672s R is a collaborative project with many contributors. 672s Type 'contributors()' for more information and 672s 'citation()' on how to cite R or R packages in publications. 672s 672s Type 'demo()' for some demos, 'help()' for on-line help, or 672s 'help.start()' for an HTML browser interface to help. 672s Type 'q()' to quit R. 672s 672s > ## 672s > ## r e c t i n t . R Tests 672s > ## 672s > 672s > rectint <- pracma::rectint 672s > 672s > x <- matrix(c(0, 0, 1, 1), ncol = 4) 672s > y <- matrix(c( 0.75,-0.25, 0.5, 0.5, 672s + 0.75, 0.25, 0.5, 0.5, 672s + 0.75, 0.25, 0.2, 0.5, 672s + 0.75, 0.75, 0.5, 0.5, 672s + 0.75,-0.25, 0.5, 1.5), ncol = 4, byrow = TRUE) 672s > 672s > all.equal(rectint(x, y), 672s + matrix(c(0.0625, 0.125, 0.1, 0.0625, 0.25), nrow = 1)) 672s [1] TRUE 672s > 673s BEGIN TEST regexp.R 673s 673s R version 4.3.2 (2023-10-31) -- "Eye Holes" 673s Copyright (C) 2023 The R Foundation for Statistical Computing 673s Platform: x86_64-pc-linux-gnu (64-bit) 673s 673s R is free software and comes with ABSOLUTELY NO WARRANTY. 673s You are welcome to redistribute it under certain conditions. 673s Type 'license()' or 'licence()' for distribution details. 673s 673s R is a collaborative project with many contributors. 673s Type 'contributors()' for more information and 673s 'citation()' on how to cite R or R packages in publications. 673s 673s Type 'demo()' for some demos, 'help()' for on-line help, or 673s 'help.start()' for an HTML browser interface to help. 673s Type 'q()' to quit R. 673s 673s > ## 673s > ## r e g e x p . R Test suite 673s > ## 673s > 673s > 673s > regexp <- pracma::regexp 673s > regexpi <- pracma::regexpi 673s > regexprep <- pracma::regexprep 673s > refindall <- pracma::refindall 673s > 673s > s <- "bat cat can car COAT court cut ct CAT-scan" 673s > pat <- 'c[aeiou]+t' 673s > identical(regexp(s, pat)$match, 673s + c("cat", "cut")) 673s [1] TRUE 673s > identical(regexpi(s, pat)$match, 673s + c("cat", "COAT", "cut", "CAT")) 673s [1] TRUE 673s > identical(regexp(s, pat, once = TRUE)$match, 673s + c("cat")) 673s [1] TRUE 673s > identical(regexp(s, pat, ignorecase = TRUE, split = TRUE)$split, 673s + c("bat ", " can car ", " court ", " ct ", "-scan")) 673s [1] TRUE 673s > 673s > identical(regexprep(s, pat, '---'), 673s + c("bat --- can car COAT court --- ct CAT-scan")) 673s [1] TRUE 673s > identical(regexprep(s, pat, '---', once = TRUE), 673s + c("bat --- can car COAT court cut ct CAT-scan")) 673s [1] TRUE 673s > identical(regexprep(s, pat, '---', ignorecase = TRUE), 673s + c("bat --- can car --- court --- ct ----scan")) 673s [1] TRUE 673s > 673s > identical(refindall("AbababaBa", 'aba'), c(3, 5)) 673s [1] TRUE 673s > identical(refindall("AbababaBa", 'aba', ignorecase = TRUE), c(1, 3, 5, 7)) 673s [1] TRUE 673s > 673s BEGIN TEST roots.R 673s 673s R version 4.3.2 (2023-10-31) -- "Eye Holes" 673s Copyright (C) 2023 The R Foundation for Statistical Computing 673s Platform: x86_64-pc-linux-gnu (64-bit) 673s 673s R is free software and comes with ABSOLUTELY NO WARRANTY. 673s You are welcome to redistribute it under certain conditions. 673s Type 'license()' or 'licence()' for distribution details. 673s 673s R is a collaborative project with many contributors. 673s Type 'contributors()' for more information and 673s 'citation()' on how to cite R or R packages in publications. 673s 673s Type 'demo()' for some demos, 'help()' for on-line help, or 673s 'help.start()' for an HTML browser interface to help. 673s Type 'q()' to quit R. 673s 673s > ### 673s > ### roots.R +++ Test suite +++ 673s > ### 673s > 673s > 673s > test.roots <- function(input, expected) { 673s + output <- do.call(getFromNamespace("roots", "pracma"), input) 673s + identical(output, expected) 673s + } 673s > 673s > roots.expected.empty <- matrix(0, nrow=0, ncol=0) 673s > roots.expected.singl <- matrix(0, nrow=0, ncol=0) 673s > roots.expected.bspl1 <- c(0, 2, -2, 1, -1) # Matlab: c(0, -2, -1, 1, 2) 673s > c(0, 2, -2, 1, -1) 673s [1] 0 2 -2 1 -1 673s > roots.expected.bspl2 <- c(0.5, -0.2) 673s > roots.expected.bspl3 <- -c(0, 0, -1, 1) 673s > 673s > test.roots(list(p=c()), roots.expected.empty) 673s [1] TRUE 673s > test.roots(list(p=c(0)), roots.expected.singl) 673s [1] TRUE 673s > #test.roots(list(p=c(1,0,-5,0,4,0)), roots.expected.bspl1) # zapsmall 673s > test.roots(list(p=c(1,-0.3,-0.1)), roots.expected.bspl2) 673s [1] TRUE 673s > test.roots(list(p=c(1,0,-1,0,0)), roots.expected.bspl3) 673s [1] TRUE 673s > 673s BEGIN TEST size.R 673s 673s R version 4.3.2 (2023-10-31) -- "Eye Holes" 673s Copyright (C) 2023 The R Foundation for Statistical Computing 673s Platform: x86_64-pc-linux-gnu (64-bit) 673s 673s R is free software and comes with ABSOLUTELY NO WARRANTY. 673s You are welcome to redistribute it under certain conditions. 673s Type 'license()' or 'licence()' for distribution details. 673s 673s R is a collaborative project with many contributors. 673s Type 'contributors()' for more information and 673s 'citation()' on how to cite R or R packages in publications. 673s 673s Type 'demo()' for some demos, 'help()' for on-line help, or 673s 'help.start()' for an HTML browser interface to help. 673s Type 'q()' to quit R. 673s 673s > ## 673s > ## s i z e . R tests 673s > ## 673s > 673s > size <- pracma::size 673s > numel <- pracma::numel 673s > ndims <- pracma::ndims 673s > isempty <- pracma::isempty 673s > 673s > identical(size(1:8), c(1, 8)) 673s [1] TRUE 673s > identical(size(1:8, 1), 1) 673s [1] TRUE 673s > identical(size(1:8, 2), 8) 673s [1] TRUE 673s > identical(size(1:8, 3), 1) 673s [1] TRUE 673s > identical(size(matrix(1:12, 3, 4)), c(3L, 4L)) 673s [1] TRUE 673s > 673s > identical(numel(array(0, c(4,4,2))), 32) 673s [1] TRUE 673s > identical(numel(1:100), 100) 673s [1] TRUE 673s > 673s > identical(ndims(array(NA, c(4,4,2))), 3L) 673s [1] TRUE 673s > identical(ndims(list(a=1:5)), 2L) 673s [1] FALSE 673s > 673s > identical(isempty(numeric(0)), TRUE) 673s [1] TRUE 673s > identical(isempty(matrix(0, 1, 0)), TRUE) 673s [1] TRUE 673s > identical(isempty(matrix(0, 1, 1)), FALSE) 673s [1] TRUE 673s > identical(isempty(array(NA, c(2,2,2))), FALSE) 673s [1] TRUE 673s > identical(isempty(array(NA, c(2,0,2))), TRUE) 673s [1] TRUE 673s > 673s BEGIN TEST std.R 673s 673s R version 4.3.2 (2023-10-31) -- "Eye Holes" 673s Copyright (C) 2023 The R Foundation for Statistical Computing 673s Platform: x86_64-pc-linux-gnu (64-bit) 673s 673s R is free software and comes with ABSOLUTELY NO WARRANTY. 673s You are welcome to redistribute it under certain conditions. 673s Type 'license()' or 'licence()' for distribution details. 673s 673s R is a collaborative project with many contributors. 673s Type 'contributors()' for more information and 673s 'citation()' on how to cite R or R packages in publications. 673s 673s Type 'demo()' for some demos, 'help()' for on-line help, or 673s 'help.start()' for an HTML browser interface to help. 673s Type 'q()' to quit R. 673s 673s > ## 673s > ## s t d . r tests 673s > ## 673s > 673s > std <- pracma::std 673s > std_err <- pracma::std_err 673s > 673s > all.equal(std(1:10), 3.0277, tolerance=0.0001) 673s [1] TRUE 673s > all.equal(std(1:10, flag=0), 3.0277, tolerance=0.0001) 673s [1] TRUE 673s > all.equal(std(1:10, flag=1), 2.8723, tolerance=0.0001) 673s [1] TRUE 673s > 673s > all.equal(std_err(1:10), 0.9574271, tolerance=0.0001) 673s [1] TRUE 673s > 673s BEGIN TEST strfind.R 673s 673s R version 4.3.2 (2023-10-31) -- "Eye Holes" 673s Copyright (C) 2023 The R Foundation for Statistical Computing 673s Platform: x86_64-pc-linux-gnu (64-bit) 673s 673s R is free software and comes with ABSOLUTELY NO WARRANTY. 673s You are welcome to redistribute it under certain conditions. 673s Type 'license()' or 'licence()' for distribution details. 673s 673s R is a collaborative project with many contributors. 673s Type 'contributors()' for more information and 673s 'citation()' on how to cite R or R packages in publications. 673s 673s Type 'demo()' for some demos, 'help()' for on-line help, or 673s 'help.start()' for an HTML browser interface to help. 673s Type 'q()' to quit R. 673s 673s > ## 673s > ## s t r f i n d . R Test suite 673s > ## 673s > 673s > 673s > strfind <- pracma::strfind 673s > strfindi <- pracma::strfindi 673s > #findstr <- pracma::findstr 673s > 673s > identical(strfind("", "aba"), NULL) 673s [1] TRUE 673s > identical(strfind("ab", "aba"), NULL) 673s [1] TRUE 673s > identical(strfind("aba", "aba"), 1) 673s [1] TRUE 673s > identical(strfind("ababa", "aba"), c(1, 3)) 673s [1] TRUE 673s > identical(strfind("ababa", "aba", overlap=FALSE), 1) 673s [1] TRUE 673s > 673s > identical(strfindi("ABA", "aba"), 1) 673s [1] TRUE 673s > identical(strfindi("aba", "ABA"), 1) 673s [1] TRUE 673s > identical(strfindi("ABABA", "aba"), c(1, 3)) 673s [1] TRUE 673s > identical(strfindi("aBaBa", "AbA", overlap=FALSE), 1) 673s [1] TRUE 673s > 673s BEGIN TEST strings.R 674s 674s R version 4.3.2 (2023-10-31) -- "Eye Holes" 674s Copyright (C) 2023 The R Foundation for Statistical Computing 674s Platform: x86_64-pc-linux-gnu (64-bit) 674s 674s R is free software and comes with ABSOLUTELY NO WARRANTY. 674s You are welcome to redistribute it under certain conditions. 674s Type 'license()' or 'licence()' for distribution details. 674s 674s R is a collaborative project with many contributors. 674s Type 'contributors()' for more information and 674s 'citation()' on how to cite R or R packages in publications. 674s 674s Type 'demo()' for some demos, 'help()' for on-line help, or 674s 'help.start()' for an HTML browser interface to help. 674s Type 'q()' to quit R. 674s 674s > ## 674s > ## s t r i n g s . R tests 674s > ## 674s > 674s > strcat <- pracma::strcat 674s > strcmp <- pracma::strcmp 674s > strcmpi <- pracma::strcmpi 674s > 674s > strcmp(" empty", " empty") # T 674s [1] TRUE 674s > !strcmp("empty ", "empty") # F 674s [1] TRUE 674s > !strcmp("foobar", "barfoo") # F 674s [1] TRUE 674s > !strcmp("string", "String") # F 674s [1] TRUE 674s > !strcmp(c("yes", "no"), c("yes", "on")) # F 674s [1] TRUE 674s > !strcmp(c("abc", "abc"), c("abc")) # F 674s [1] TRUE 674s > strcmp(c("yes", "no"), c("yes", "no")) # T 674s [1] TRUE 674s > 674s > strcmpi("string", "String") # T 674s [1] TRUE 674s > strcmpi(c("yes", "no"), c("Yes", "No")) # T 674s [1] TRUE 674s > 674s > blanks <- pracma::blanks 674s > deblank <- pracma::deblank 674s > strTrim <- pracma::strTrim 674s > strjust <- pracma::strjust 674s > strRep <- pracma::strRep 674s > 674s > identical(c(blanks(0), blanks(1), blanks(2)), c("", " ", " ")) 674s [1] TRUE 674s > s <- c(" abc", "abc ", " abc ", " a b c ", "abc", "a b c") 674s > identical(deblank(s), c(" abc", "abc", " abc", " a b c", "abc", "a b c")) 674s [1] TRUE 674s > identical(strTrim(s), c("abc", "abc", "abc", "a b c", "abc", "a b c")) 674s [1] TRUE 674s > identical(strjust(s, justify = "center"), 674s + c(" abc ", " abc ", " abc ", "a b c", " abc ", "a b c")) 674s [1] TRUE 674s > s <- c('This is a good example.', "He has a good character.", 674s + 'This is good, good food.', "How goodgood this is!") 674s > identical(strRep(s, 'good', 'great'), 674s + c('This is a great example.', "He has a great character.", 674s + 'This is great, great food.', "How greatgreat this is!")) 674s [1] TRUE 674s > 674s BEGIN TEST subspace.R 674s 674s R version 4.3.2 (2023-10-31) -- "Eye Holes" 674s Copyright (C) 2023 The R Foundation for Statistical Computing 674s Platform: x86_64-pc-linux-gnu (64-bit) 674s 674s R is free software and comes with ABSOLUTELY NO WARRANTY. 674s You are welcome to redistribute it under certain conditions. 674s Type 'license()' or 'licence()' for distribution details. 674s 674s R is a collaborative project with many contributors. 674s Type 'contributors()' for more information and 674s 'citation()' on how to cite R or R packages in publications. 674s 674s Type 'demo()' for some demos, 'help()' for on-line help, or 674s 'help.start()' for an HTML browser interface to help. 674s Type 'q()' to quit R. 674s 674s > ## 674s > ## s u b s p a c e . r Test suite 674s > ## 674s > 674s > 674s > orth <- pracma::orth 674s > subspace <- pracma::subspace 674s > 674s > is.null(orth(c())) 674s [1] TRUE 674s > M <- matrix(1:12, 3, 4) 674s > all.equal(orth(M), 674s + matrix(c(-0.504533, -0.760776, 674s + -0.574516, -0.057141, 674s + -0.644497, 0.646495), 3, 2, byrow = TRUE), 674s + tolerance = 1e-5) 674s [1] "Mean relative difference: 2" 674s > 674s > H <- pracma::hadamard(8) 674s > A <- H[, 2:4] 674s > B <- H[, 5:8] 674s > all.equal(subspace(A, B), pi/2, tolerance = 1e-10) 674s [1] TRUE 674s > 674s BEGIN TEST trace.R 674s 674s R version 4.3.2 (2023-10-31) -- "Eye Holes" 674s Copyright (C) 2023 The R Foundation for Statistical Computing 674s Platform: x86_64-pc-linux-gnu (64-bit) 674s 674s R is free software and comes with ABSOLUTELY NO WARRANTY. 674s You are welcome to redistribute it under certain conditions. 674s Type 'license()' or 'licence()' for distribution details. 674s 674s R is a collaborative project with many contributors. 674s Type 'contributors()' for more information and 674s 'citation()' on how to cite R or R packages in publications. 674s 674s Type 'demo()' for some demos, 'help()' for on-line help, or 674s 'help.start()' for an HTML browser interface to help. 674s Type 'q()' to quit R. 674s 674s > ## 674s > ## m t r a c e . R Test suite 674s > ## 674s > 674s > Trace <- pracma::Trace 674s > 674s > identical(Trace(1), 1) 674s [1] TRUE 674s > identical(Trace(matrix(c(1,2,3,4,5,6,7,8,9), 3, 3)), 15) 674s [1] TRUE 674s > # Error: Trace(matrix(1:12, 3, 4)) 674s > 674s BEGIN TEST trapz.R 674s 674s R version 4.3.2 (2023-10-31) -- "Eye Holes" 674s Copyright (C) 2023 The R Foundation for Statistical Computing 674s Platform: x86_64-pc-linux-gnu (64-bit) 674s 674s R is free software and comes with ABSOLUTELY NO WARRANTY. 674s You are welcome to redistribute it under certain conditions. 674s Type 'license()' or 'licence()' for distribution details. 674s 674s R is a collaborative project with many contributors. 674s Type 'contributors()' for more information and 674s 'citation()' on how to cite R or R packages in publications. 674s 674s Type 'demo()' for some demos, 'help()' for on-line help, or 674s 'help.start()' for an HTML browser interface to help. 674s Type 'q()' to quit R. 674s 674s > ### 674s > ### trapz.R +++ Test suite +++ 674s > ### 674s > 674s > 674s > test.trapz <- function(input, expected) { 674s + output <- do.call(getFromNamespace("trapz", "pracma"), input) 674s + identical(output, expected) 674s + } 674s > 674s > trapz.expected.empty1 <- 0 674s > trapz.expected.empty2 <- 0 674s > trapz.expected.gen1 <- 12 674s > trapz.expected.gen2 <- 6 674s > trapz.expected.cmpl1 <- 0+0.5i 674s > trapz.expected.cmpl2 <- 0+0.5i 674s > 674s > test.trapz(list(x=c()), trapz.expected.empty1) 674s [1] TRUE 674s > test.trapz(list(x=c(), y=c()), trapz.expected.empty2) 674s [1] TRUE 674s > test.trapz(list(x=1:5), trapz.expected.gen1) 674s [1] TRUE 674s > test.trapz(list(x=seq(0,2,by=0.5), y=1:5), trapz.expected.gen2) 674s [1] TRUE 674s > test.trapz(list(x=c(0,1), y=c(0,1i)), trapz.expected.cmpl1) 674s [1] TRUE 674s > test.trapz(list(x=c(0,1i), y=c(0,1)), trapz.expected.cmpl2) 674s [1] TRUE 674s > 674s BEGIN TEST vander.R 674s 674s R version 4.3.2 (2023-10-31) -- "Eye Holes" 674s Copyright (C) 2023 The R Foundation for Statistical Computing 674s Platform: x86_64-pc-linux-gnu (64-bit) 674s 674s R is free software and comes with ABSOLUTELY NO WARRANTY. 674s You are welcome to redistribute it under certain conditions. 674s Type 'license()' or 'licence()' for distribution details. 674s 674s R is a collaborative project with many contributors. 674s Type 'contributors()' for more information and 674s 'citation()' on how to cite R or R packages in publications. 674s 674s Type 'demo()' for some demos, 'help()' for on-line help, or 674s 'help.start()' for an HTML browser interface to help. 674s Type 'q()' to quit R. 674s 674s > ### 674s > ### VANDER.R +++ Test suite +++ 674s > ### 674s > 674s > test.vander <- function(input, expected) { 674s + output <- do.call(getFromNamespace("vander", "pracma"), input) 674s + identical(output, expected) 674s + } 674s > 674s > vander.expected.empty <- matrix(as.numeric(NA), nrow=0, ncol=0) 674s > vander.expected.scalar <- matrix(1.0, nrow=1, ncol=1) 674s > vander.expected.seq3 <- matrix(c( 1, 1, 1, 1, 1, 674s + 5.0625, 3.375, 2.25, 1.5, 1, 674s + 16, 8, 4, 2, 1, 674s + 39.0625, 15.625, 6.25, 2.5, 1, 674s + 81, 27, 9, 3, 1), 674s + nrow=5, ncol=5, byrow=TRUE) 674s > vander.expected.complex <- matrix(c(-1, 0.0 + 1i, 1.0, 674s + -4, 0.0 + 2i, 1.0, 674s + -9, 0.0 + 3i, 1.0), 674s + nrow=3, ncol=3, byrow=TRUE) 674s > 674s > test.vander(list(x=numeric()), vander.expected.empty) 674s [1] TRUE 674s > test.vander(list(x=1), vander.expected.scalar) 674s [1] TRUE 674s > test.vander(list(x=seq(from=1, to=3, by=0.5)), vander.expected.seq3) 674s [1] TRUE 674s > test.vander(list(x=c(1,2,3)*1i), vander.expected.complex) 674s [1] TRUE 674s > 674s BEGIN TEST wilkinson.R 675s 675s R version 4.3.2 (2023-10-31) -- "Eye Holes" 675s Copyright (C) 2023 The R Foundation for Statistical Computing 675s Platform: x86_64-pc-linux-gnu (64-bit) 675s 675s R is free software and comes with ABSOLUTELY NO WARRANTY. 675s You are welcome to redistribute it under certain conditions. 675s Type 'license()' or 'licence()' for distribution details. 675s 675s R is a collaborative project with many contributors. 675s Type 'contributors()' for more information and 675s 'citation()' on how to cite R or R packages in publications. 675s 675s Type 'demo()' for some demos, 'help()' for on-line help, or 675s 'help.start()' for an HTML browser interface to help. 675s Type 'q()' to quit R. 675s 675s > ### 675s > ### wilkinson.R +++ Test suite +++ 675s > ### 675s > 675s > wilkinson <- pracma::wilkinson 675s > 675s > identical(wilkinson(0), NULL) 675s [1] TRUE 675s > identical(wilkinson(1), matrix(0, nrow=1, ncol=1)) 675s [1] TRUE 675s > identical(wilkinson(3), matrix(c(1,1,0, 1,0,1, 0,1,1), 3, 3)) 675s [1] TRUE 675s > 675s autopkgtest [12:47:42]: test run-unit-test: -----------------------] 675s autopkgtest [12:47:42]: test run-unit-test: - - - - - - - - - - results - - - - - - - - - - 675s run-unit-test PASS 675s autopkgtest [12:47:42]: test pkg-r-autopkgtest: preparing testbed 677s Note, using file '/tmp/autopkgtest.XpW8mA/3-autopkgtest-satdep.dsc' to get the build dependencies 677s Reading package lists... 678s Building dependency tree... 678s Reading state information... 678s Starting pkgProblemResolver with broken count: 0 678s Starting 2 pkgProblemResolver with broken count: 0 678s Done 678s The following NEW packages will be installed: 678s dctrl-tools gfortran gfortran-13 gfortran-13-x86-64-linux-gnu 678s gfortran-x86-64-linux-gnu icu-devtools libblas-dev libbz2-dev 678s libgfortran-13-dev libicu-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev 678s liblapack-dev liblzma-dev libncurses-dev libpcre2-16-0 libpcre2-32-0 678s libpcre2-dev libpcre2-posix3 libpkgconf3 libpng-dev libreadline-dev 678s pkg-config pkg-r-autopkgtest pkgconf pkgconf-bin r-base-dev zlib1g-dev 679s 0 upgraded, 29 newly installed, 0 to remove and 0 not upgraded. 679s Need to get 33.6 MB of archives. 679s After this operation, 130 MB of additional disk space will be used. 679s Get:1 http://ftpmaster.internal/ubuntu noble/main amd64 dctrl-tools amd64 2.24-3build2 [66.9 kB] 679s Get:2 http://ftpmaster.internal/ubuntu noble/main amd64 libgfortran-13-dev amd64 13.2.0-17ubuntu2 [942 kB] 679s Get:3 http://ftpmaster.internal/ubuntu noble/main amd64 gfortran-13-x86-64-linux-gnu amd64 13.2.0-17ubuntu2 [11.6 MB] 679s Get:4 http://ftpmaster.internal/ubuntu noble/main amd64 gfortran-13 amd64 13.2.0-17ubuntu2 [10.3 kB] 679s Get:5 http://ftpmaster.internal/ubuntu noble/main amd64 gfortran-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [1024 B] 679s Get:6 http://ftpmaster.internal/ubuntu noble/main amd64 gfortran amd64 4:13.2.0-7ubuntu1 [1176 B] 679s Get:7 http://ftpmaster.internal/ubuntu noble/main amd64 icu-devtools amd64 74.2-1ubuntu1 [212 kB] 679s Get:8 http://ftpmaster.internal/ubuntu noble/main amd64 libblas-dev amd64 3.12.0-3 [170 kB] 679s Get:9 http://ftpmaster.internal/ubuntu noble/main amd64 libbz2-dev amd64 1.0.8-5ubuntu1 [33.6 kB] 679s Get:10 http://ftpmaster.internal/ubuntu noble/main amd64 libicu-dev amd64 74.2-1ubuntu1 [11.9 MB] 679s Get:11 http://ftpmaster.internal/ubuntu noble/main amd64 libjpeg-turbo8-dev amd64 2.1.5-2ubuntu1 [294 kB] 679s Get:12 http://ftpmaster.internal/ubuntu noble/main amd64 libjpeg8-dev amd64 8c-2ubuntu11 [1484 B] 679s Get:13 http://ftpmaster.internal/ubuntu noble/main amd64 libjpeg-dev amd64 8c-2ubuntu11 [1482 B] 679s Get:14 http://ftpmaster.internal/ubuntu noble/main amd64 liblapack-dev amd64 3.12.0-3 [5196 kB] 679s Get:15 http://ftpmaster.internal/ubuntu noble/main amd64 libncurses-dev amd64 6.4+20240113-1ubuntu1 [384 kB] 679s Get:16 http://ftpmaster.internal/ubuntu noble/main amd64 libpcre2-16-0 amd64 10.42-4ubuntu1 [211 kB] 679s Get:17 http://ftpmaster.internal/ubuntu noble/main amd64 libpcre2-32-0 amd64 10.42-4ubuntu1 [198 kB] 679s Get:18 http://ftpmaster.internal/ubuntu noble/main amd64 libpcre2-posix3 amd64 10.42-4ubuntu1 [6808 B] 679s Get:19 http://ftpmaster.internal/ubuntu noble/main amd64 libpcre2-dev amd64 10.42-4ubuntu1 [743 kB] 679s Get:20 http://ftpmaster.internal/ubuntu noble/main amd64 libpkgconf3 amd64 1.8.1-2 [31.1 kB] 679s Get:21 http://ftpmaster.internal/ubuntu noble/main amd64 zlib1g-dev amd64 1:1.3.dfsg-3ubuntu1 [896 kB] 679s Get:22 http://ftpmaster.internal/ubuntu noble/main amd64 libpng-dev amd64 1.6.43-1 [264 kB] 679s Get:23 http://ftpmaster.internal/ubuntu noble/main amd64 libreadline-dev amd64 8.2-3 [167 kB] 679s Get:24 http://ftpmaster.internal/ubuntu noble/main amd64 pkgconf-bin amd64 1.8.1-2 [20.7 kB] 679s Get:25 http://ftpmaster.internal/ubuntu noble/main amd64 pkgconf amd64 1.8.1-2 [16.8 kB] 679s Get:26 http://ftpmaster.internal/ubuntu noble/main amd64 pkg-config amd64 1.8.1-2 [7170 B] 679s Get:27 http://ftpmaster.internal/ubuntu noble/main amd64 liblzma-dev amd64 5.4.5-0.3 [205 kB] 679s Get:28 http://ftpmaster.internal/ubuntu noble/universe amd64 r-base-dev all 4.3.2-1build1 [4336 B] 679s Get:29 http://ftpmaster.internal/ubuntu noble/universe amd64 pkg-r-autopkgtest all 20231212ubuntu1 [6448 B] 679s Fetched 33.6 MB in 0s (115 MB/s) 679s Selecting previously unselected package dctrl-tools. 679s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 76467 files and directories currently installed.) 679s Preparing to unpack .../00-dctrl-tools_2.24-3build2_amd64.deb ... 679s Unpacking dctrl-tools (2.24-3build2) ... 679s Selecting previously unselected package libgfortran-13-dev:amd64. 679s Preparing to unpack .../01-libgfortran-13-dev_13.2.0-17ubuntu2_amd64.deb ... 679s Unpacking libgfortran-13-dev:amd64 (13.2.0-17ubuntu2) ... 679s Selecting previously unselected package gfortran-13-x86-64-linux-gnu. 679s Preparing to unpack .../02-gfortran-13-x86-64-linux-gnu_13.2.0-17ubuntu2_amd64.deb ... 679s Unpacking gfortran-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 680s Selecting previously unselected package gfortran-13. 680s Preparing to unpack .../03-gfortran-13_13.2.0-17ubuntu2_amd64.deb ... 680s Unpacking gfortran-13 (13.2.0-17ubuntu2) ... 680s Selecting previously unselected package gfortran-x86-64-linux-gnu. 680s Preparing to unpack .../04-gfortran-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 680s Unpacking gfortran-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 680s Selecting previously unselected package gfortran. 680s Preparing to unpack .../05-gfortran_4%3a13.2.0-7ubuntu1_amd64.deb ... 680s Unpacking gfortran (4:13.2.0-7ubuntu1) ... 680s Selecting previously unselected package icu-devtools. 680s Preparing to unpack .../06-icu-devtools_74.2-1ubuntu1_amd64.deb ... 680s Unpacking icu-devtools (74.2-1ubuntu1) ... 680s Selecting previously unselected package libblas-dev:amd64. 680s Preparing to unpack .../07-libblas-dev_3.12.0-3_amd64.deb ... 680s Unpacking libblas-dev:amd64 (3.12.0-3) ... 680s Selecting previously unselected package libbz2-dev:amd64. 680s Preparing to unpack .../08-libbz2-dev_1.0.8-5ubuntu1_amd64.deb ... 680s Unpacking libbz2-dev:amd64 (1.0.8-5ubuntu1) ... 680s Selecting previously unselected package libicu-dev:amd64. 680s Preparing to unpack .../09-libicu-dev_74.2-1ubuntu1_amd64.deb ... 680s Unpacking libicu-dev:amd64 (74.2-1ubuntu1) ... 680s Selecting previously unselected package libjpeg-turbo8-dev:amd64. 680s Preparing to unpack .../10-libjpeg-turbo8-dev_2.1.5-2ubuntu1_amd64.deb ... 680s Unpacking libjpeg-turbo8-dev:amd64 (2.1.5-2ubuntu1) ... 680s Selecting previously unselected package libjpeg8-dev:amd64. 680s Preparing to unpack .../11-libjpeg8-dev_8c-2ubuntu11_amd64.deb ... 680s Unpacking libjpeg8-dev:amd64 (8c-2ubuntu11) ... 680s Selecting previously unselected package libjpeg-dev:amd64. 680s Preparing to unpack .../12-libjpeg-dev_8c-2ubuntu11_amd64.deb ... 680s Unpacking libjpeg-dev:amd64 (8c-2ubuntu11) ... 680s Selecting previously unselected package liblapack-dev:amd64. 680s Preparing to unpack .../13-liblapack-dev_3.12.0-3_amd64.deb ... 680s Unpacking liblapack-dev:amd64 (3.12.0-3) ... 680s Selecting previously unselected package libncurses-dev:amd64. 680s Preparing to unpack .../14-libncurses-dev_6.4+20240113-1ubuntu1_amd64.deb ... 680s Unpacking libncurses-dev:amd64 (6.4+20240113-1ubuntu1) ... 680s Selecting previously unselected package libpcre2-16-0:amd64. 680s Preparing to unpack .../15-libpcre2-16-0_10.42-4ubuntu1_amd64.deb ... 680s Unpacking libpcre2-16-0:amd64 (10.42-4ubuntu1) ... 680s Selecting previously unselected package libpcre2-32-0:amd64. 680s Preparing to unpack .../16-libpcre2-32-0_10.42-4ubuntu1_amd64.deb ... 680s Unpacking libpcre2-32-0:amd64 (10.42-4ubuntu1) ... 680s Selecting previously unselected package libpcre2-posix3:amd64. 680s Preparing to unpack .../17-libpcre2-posix3_10.42-4ubuntu1_amd64.deb ... 680s Unpacking libpcre2-posix3:amd64 (10.42-4ubuntu1) ... 680s Selecting previously unselected package libpcre2-dev:amd64. 680s Preparing to unpack .../18-libpcre2-dev_10.42-4ubuntu1_amd64.deb ... 680s Unpacking libpcre2-dev:amd64 (10.42-4ubuntu1) ... 680s Selecting previously unselected package libpkgconf3:amd64. 680s Preparing to unpack .../19-libpkgconf3_1.8.1-2_amd64.deb ... 680s Unpacking libpkgconf3:amd64 (1.8.1-2) ... 680s Selecting previously unselected package zlib1g-dev:amd64. 680s Preparing to unpack .../20-zlib1g-dev_1%3a1.3.dfsg-3ubuntu1_amd64.deb ... 680s Unpacking zlib1g-dev:amd64 (1:1.3.dfsg-3ubuntu1) ... 680s Selecting previously unselected package libpng-dev:amd64. 680s Preparing to unpack .../21-libpng-dev_1.6.43-1_amd64.deb ... 680s Unpacking libpng-dev:amd64 (1.6.43-1) ... 680s Selecting previously unselected package libreadline-dev:amd64. 680s Preparing to unpack .../22-libreadline-dev_8.2-3_amd64.deb ... 680s Unpacking libreadline-dev:amd64 (8.2-3) ... 681s Selecting previously unselected package pkgconf-bin. 681s Preparing to unpack .../23-pkgconf-bin_1.8.1-2_amd64.deb ... 681s Unpacking pkgconf-bin (1.8.1-2) ... 681s Selecting previously unselected package pkgconf:amd64. 681s Preparing to unpack .../24-pkgconf_1.8.1-2_amd64.deb ... 681s Unpacking pkgconf:amd64 (1.8.1-2) ... 681s Selecting previously unselected package pkg-config:amd64. 681s Preparing to unpack .../25-pkg-config_1.8.1-2_amd64.deb ... 681s Unpacking pkg-config:amd64 (1.8.1-2) ... 681s Selecting previously unselected package liblzma-dev:amd64. 681s Preparing to unpack .../26-liblzma-dev_5.4.5-0.3_amd64.deb ... 681s Unpacking liblzma-dev:amd64 (5.4.5-0.3) ... 681s Selecting previously unselected package r-base-dev. 681s Preparing to unpack .../27-r-base-dev_4.3.2-1build1_all.deb ... 681s Unpacking r-base-dev (4.3.2-1build1) ... 681s Selecting previously unselected package pkg-r-autopkgtest. 681s Preparing to unpack .../28-pkg-r-autopkgtest_20231212ubuntu1_all.deb ... 681s Unpacking pkg-r-autopkgtest (20231212ubuntu1) ... 681s Setting up libjpeg-turbo8-dev:amd64 (2.1.5-2ubuntu1) ... 681s Setting up libncurses-dev:amd64 (6.4+20240113-1ubuntu1) ... 681s Setting up libreadline-dev:amd64 (8.2-3) ... 681s Setting up libpcre2-16-0:amd64 (10.42-4ubuntu1) ... 681s Setting up libpcre2-32-0:amd64 (10.42-4ubuntu1) ... 681s Setting up libpkgconf3:amd64 (1.8.1-2) ... 681s Setting up icu-devtools (74.2-1ubuntu1) ... 681s Setting up pkgconf-bin (1.8.1-2) ... 681s Setting up liblzma-dev:amd64 (5.4.5-0.3) ... 681s Setting up zlib1g-dev:amd64 (1:1.3.dfsg-3ubuntu1) ... 681s Setting up libpcre2-posix3:amd64 (10.42-4ubuntu1) ... 681s Setting up libjpeg8-dev:amd64 (8c-2ubuntu11) ... 681s Setting up libgfortran-13-dev:amd64 (13.2.0-17ubuntu2) ... 681s Setting up libicu-dev:amd64 (74.2-1ubuntu1) ... 681s Setting up libblas-dev:amd64 (3.12.0-3) ... 681s update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so to provide /usr/lib/x86_64-linux-gnu/libblas.so (libblas.so-x86_64-linux-gnu) in auto mode 681s Setting up dctrl-tools (2.24-3build2) ... 681s Setting up libbz2-dev:amd64 (1.0.8-5ubuntu1) ... 681s Setting up libpcre2-dev:amd64 (10.42-4ubuntu1) ... 681s Setting up libpng-dev:amd64 (1.6.43-1) ... 681s Setting up libjpeg-dev:amd64 (8c-2ubuntu11) ... 681s Setting up gfortran-13-x86-64-linux-gnu (13.2.0-17ubuntu2) ... 681s Setting up pkgconf:amd64 (1.8.1-2) ... 681s Setting up gfortran-13 (13.2.0-17ubuntu2) ... 681s Setting up liblapack-dev:amd64 (3.12.0-3) ... 681s update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so to provide /usr/lib/x86_64-linux-gnu/liblapack.so (liblapack.so-x86_64-linux-gnu) in auto mode 681s Setting up pkg-config:amd64 (1.8.1-2) ... 681s Setting up gfortran-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 681s Setting up gfortran (4:13.2.0-7ubuntu1) ... 681s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 681s update-alternatives: warning: skip creation of /usr/share/man/man1/f95.1.gz because associated file /usr/share/man/man1/gfortran.1.gz (of link group f95) doesn't exist 681s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 681s update-alternatives: warning: skip creation of /usr/share/man/man1/f77.1.gz because associated file /usr/share/man/man1/gfortran.1.gz (of link group f77) doesn't exist 681s Setting up r-base-dev (4.3.2-1build1) ... 681s Setting up pkg-r-autopkgtest (20231212ubuntu1) ... 681s Processing triggers for libc-bin (2.39-0ubuntu6) ... 681s Processing triggers for man-db (2.12.0-3) ... 682s Processing triggers for install-info (7.1-3) ... 685s Reading package lists... 686s Building dependency tree... 686s Reading state information... 686s Starting pkgProblemResolver with broken count: 0 686s Starting 2 pkgProblemResolver with broken count: 0 686s Done 686s The following NEW packages will be installed: 686s autopkgtest-satdep 686s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 686s Need to get 0 B/696 B of archives. 686s After this operation, 0 B of additional disk space will be used. 686s Get:1 /tmp/autopkgtest.XpW8mA/4-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [696 B] 687s Selecting previously unselected package autopkgtest-satdep. 687s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 77196 files and directories currently installed.) 687s Preparing to unpack .../4-autopkgtest-satdep.deb ... 687s Unpacking autopkgtest-satdep (0) ... 687s Setting up autopkgtest-satdep (0) ... 689s (Reading database ... 77196 files and directories currently installed.) 689s Removing autopkgtest-satdep (0) ... 689s autopkgtest [12:47:56]: test pkg-r-autopkgtest: /usr/share/dh-r/pkg-r-autopkgtest 689s autopkgtest [12:47:56]: test pkg-r-autopkgtest: [----------------------- 689s Test: Try to load the R library pracma 689s 689s R version 4.3.2 (2023-10-31) -- "Eye Holes" 689s Copyright (C) 2023 The R Foundation for Statistical Computing 689s Platform: x86_64-pc-linux-gnu (64-bit) 689s 689s R is free software and comes with ABSOLUTELY NO WARRANTY. 689s You are welcome to redistribute it under certain conditions. 689s Type 'license()' or 'licence()' for distribution details. 689s 689s R is a collaborative project with many contributors. 689s Type 'contributors()' for more information and 689s 'citation()' on how to cite R or R packages in publications. 689s 689s Type 'demo()' for some demos, 'help()' for on-line help, or 689s 'help.start()' for an HTML browser interface to help. 689s Type 'q()' to quit R. 689s 689s > library('pracma') 689s > 689s > 689s Other tests are currently unsupported! 689s They will be progressively added. 689s autopkgtest [12:47:56]: test pkg-r-autopkgtest: -----------------------] 690s autopkgtest [12:47:57]: test pkg-r-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 690s pkg-r-autopkgtest PASS 690s autopkgtest [12:47:57]: @@@@@@@@@@@@@@@@@@@@ summary 690s run-unit-test PASS 690s pkg-r-autopkgtest PASS 700s Creating nova instance adt-noble-i386-r-cran-pracma-20240323-123627-juju-7f2275-prod-proposed-migration-environment-3 from image adt/ubuntu-noble-amd64-server-20240323.img (UUID 5df8a563-0957-4fdd-8453-862df650aaf8)...