- using R version 4.6.2 (2026-10-29 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-11-23 21:25:39 UTC
- checking for file 'mgcViz/DESCRIPTION' ... OK
- this is package 'mgcViz' version '0.2.1'
- 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 'mgcViz' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- 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 ... [4s] OK
- checking whether the package can be loaded with stated dependencies ... [4s] OK
- checking whether the package can be unloaded cleanly ... [4s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s] OK
- checking whether the namespace can be unloaded cleanly ... [4s] OK
- checking loading without being on the library search path ... [4s] OK
- checking whether startup messages can be suppressed ... [4s] 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 ... [22s] OK
- checking Rd files ... [2s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [47s] ERROR
Running examples in 'mgcViz-Ex.R' failed
The error most likely occurred in:
> ### Name: plot.fs.interaction.1D
> ### Title: Plotting one dimensional smooth factor interactions
> ### Aliases: plot.fs.interaction.1D
>
> ### ** Examples
>
> library(mgcViz)
> set.seed(0)
> ## simulate data...
> f0 <- function(x) 2 * sin(pi * x)
> f1 <- function(x, a = 2, b = -1) exp(a * x) + b
> f2 <- function(x) 0.2 * x^11 * (10 * (1 - x))^6 + 10 *
+ (10 * x)^3 * (1 - x)^10
> n <- 500; nf <- 25
> fac <- sample(1:nf, n, replace = TRUE)
> x0 <- runif(n); x1 <- runif(n); x2 <- runif(n)
> a <- rnorm(nf) * .2 + 2; b <- rnorm(nf) * .5
> f <- f0(x0) + f1(x1, a[fac], b[fac]) + f2(x2)
> fac <- factor(fac)
> y <- f + rnorm(n) * 2
> ## so response depends on global smooths of x0 and
> ## x2, and a smooth of x1 for each level of fac.
>
> ## fit model (note p-values not available when fit
> ## using gamm)...
> bm <- gamm(y ~ s(x0)+ s(x1, fac, bs = "fs", k = 5) + s(x2, k = 20))
> v <- getViz(bm$gam)
>
> # Plot with fitted effects and changing title
> plot(sm(v, 2)) + l_fitLine(alpha = 0.6) + labs(title = "Smooth factor interactions")
>
> # Changing plotting limits
> plot(sm(v, 2)) + l_fitLine() + ylim(-0.5, 0.5) + xlim(0.25, 0.75)
Warning: Incompatible methods ("+.gg", "Ops.ggproto") for "+"
Error in plot(sm(v, 2)) + l_fitLine() + ylim(-0.5, 0.5) :
non-numeric argument to binary operator
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [9s] OK
Running 'testthat.R' [9s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [31s] ERROR
Error(s) in re-building vignettes:
--- re-building 'mgcviz.rmd' using rmarkdown
Quitting from mgcviz.rmd:108-111 [8a]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `plot(sm(b, 1)) + l_fitRaster() + l_fitContour() + labs(title = NULL) + guides(
fill = FALSE)`:
! non-numeric argument to binary operator
---
Backtrace:
▆
1. └─mgcViz::gridPrint(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'mgcviz.rmd' failed with diagnostics:
non-numeric argument to binary operator
--- failed re-building 'mgcviz.rmd'
SUMMARY: processing the following file failed:
'mgcviz.rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [22s] OK
- checking HTML version of manual ... [19s] OK
- DONE
Status: 2 ERRORs