- using R Under development (unstable) (2026-11-20 r90940)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 23.1.5
flang version 23.1.5
- running under: Fedora Linux 44 (Server Edition)
- using session charset: UTF-8
* current time: 2026-11-20 09:19:40 UTC
- using option ‘--no-stop-on-test-error’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘mgcViz’ can be installed ... [17s/21s] OK
See the install log for details.
- checking installed package size ... INFO
installed size is 5.1Mb
sub-directories of 1Mb or more:
doc 4.2Mb
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking whether startup messages can be suppressed ... 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 ... [29s/32s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [34s/38s] 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 ... [10s/12s] OK
Running ‘testthat.R’ [9s/11s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... 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 ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs