- using R Under development (unstable) (2026-03-09 r89583 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-03-10 14:46:30 UTC
- checking for file 'RTMB/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'RTMB' version '1.8'
- 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 'RTMB' 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 10.7Mb
sub-directories of 1Mb or more:
R 1.1Mb
libs 8.7Mb
- 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 ... [3s] OK
- checking loading without being on the library search path ... [2s] 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 ... [13s] 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 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [5s] ERROR
Running examples in 'RTMB-Ex.R' failed
The error most likely occurred in:
> ### Name: OSA-residuals
> ### Title: Recursive quantile residuals
> ### Aliases: OSA-residuals oneStepPredict [.osa length.osa dim.osa
> ### is.array.osa is.matrix.osa
>
> ### ** Examples
>
> set.seed(1)
> rw <- cumsum(.5*rnorm(20))
> obs <- rpois(20, lambda=exp(rw))
> func <- function(p) {
+ obs <- OBS(obs) ## Mark 'obs' for OSA calculation on request
+ ans <- 0
+ jump <- c(p$rw[1], diff(p$rw))
+ ans <- ans - sum(dnorm(jump, sd=p$sd, log=TRUE))
+ ans <- ans - sum(dpois(obs, lambda=exp(p$rw), log=TRUE))
+ ans
+ }
> obj <- MakeADFun(func,
+ parameters=list(rw=rep(0,20), sd=1),
+ random="rw")
Error in advector(e2) :
Invalid argument to 'advector' (lost class attribute?)
Calls: MakeADFun ... diff.advector -> diff_patch -> Ops.advector -> Arith2 -> advector
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [12s] OK
Running 'tinytest.R' [12s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [11s] ERROR
Error(s) in re-building vignettes:
--- re-building 'RTMB-advanced.rmd' using rmarkdown
Quitting from RTMB-advanced.rmd:236-239 [unnamed-chunk-21]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `advector()`:
! Invalid argument to 'advector' (lost class attribute?)
---
Backtrace:
▆
1. └─RTMB::MakeTape(diff, numeric(5))
2. └─RTMB:::.MakeTape(f, x)
3. ├─base (local) f(x)
4. └─RTMB::diff.advector(x)
5. └─RTMB:::diff_patch(x, lag = lag, differences = differences, ...)
6. └─RTMB::Ops.advector(...)
7. ├─RTMB:::Arith2(advector(e1), advector(e2), .Generic)
8. └─RTMB::advector(e2)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'RTMB-advanced.rmd' failed with diagnostics:
Invalid argument to 'advector' (lost class attribute?)
--- failed re-building 'RTMB-advanced.rmd'
--- re-building 'RTMB-introduction.rmd' using rmarkdown
--- finished re-building 'RTMB-introduction.rmd'
SUMMARY: processing the following file failed:
'RTMB-advanced.rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [21s] OK
- checking HTML version of manual ... [8s] OK
- DONE
Status: 2 ERRORs