- using R Under development (unstable) (2026-06-29 r90199 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
* current time: 2026-07-01 18:31:45 UTC
- checking for file 'rotations/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'rotations' version '1.6.6'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'rotations' can be installed ... OK
See the install log for details.
- used C++ compiler: 'g++.exe (GCC) 14.3.0'
- checking installed package size ... INFO
installed size is 6.5Mb
sub-directories of 1Mb or more:
R 1.6Mb
data 2.7Mb
libs 1.5Mb
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s] OK
- checking whether the package can be unloaded cleanly ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [8s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compiled code ... OK
- checking sizes of PDF files under 'inst/doc' ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [2s] ERROR
Running examples in 'rotations-Ex.R' failed
The error most likely occurred in:
> ### Name: Q4
> ### Title: 'Q4' class for storing rotation data as quaternions
> ### Aliases: Q4 as.Q4 as.Q4.default as.Q4.SO3 as.Q4.Q4 as.Q4.data.frame
> ### is.Q4 id.Q4
> ### Keywords: datasets
>
> ### ** Examples
>
> # Pull off subject 1's wrist measurements
> Subj1Wrist <- subset(drill, Subject == '1' & Joint == 'Wrist')
>
> ## The measurements are in columns 5:8
> all(is.Q4(Subj1Wrist[,5:8])) #TRUE, even though Qs is a data.frame, the rows satisfy the
[1] TRUE
> #conditions necessary to be quaternions BUT,
> #S3 methods (e.g. 'mean' or 'plot') for objects of class
> #'Q4' will not work until 'as.Q4' is used
>
> Qs <- as.Q4(Subj1Wrist[,5:8]) #Coerce measurements into 'Q4' type using as.Q4.data.frame
> all(is.Q4(Qs)) #TRUE
Error in x[i, ...] : subscript out of bounds
Calls: is.Q4 -> apply -> [ -> [.Q4
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [3s] ERROR
Running 'test-all.R' [3s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
> library(testthat)
> test_check("rotations")
Loading required package: rotations
Saving _problems/test_conversions-10.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 51 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_conversions.R:10:1'): (code run outside of `test_that()`) ────
Expected `is.Q4(as.Q4(u, r))` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 51 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [52s] OK
- checking PDF version of manual ... [28s] OK
- checking HTML version of manual ... [12s] OK
- DONE
Status: 2 ERRORs