* using log directory ‘/data/gannet/ripley/R/packages/tests-clang/R2BayesX.Rcheck’
* using R Under development (unstable) (2025-02-28 r87848)
* using platform: x86_64-pc-linux-gnu
* R was compiled by
    clang version 20.1.0-rc3
    flang version 20.1.0-rc3
* running under: Fedora Linux 40 (Workstation Edition)
* using session charset: UTF-8
* using option ‘--no-stop-on-test-error’
* checking for file ‘R2BayesX/DESCRIPTION’ ... OK
* this is package ‘R2BayesX’ version ‘1.1-5’
* 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 ‘R2BayesX’ can be installed ... [18s/18s] OK
See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/R2BayesX-00install.html' for details.
* used C compiler: ‘clang version 20.1.0-rc3’
* checking installed package size ... OK
* checking package 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 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 ... [37s/37s] 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 contents of ‘data’ directory ... OK
* checking data for non-ASCII characters ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking pragmas in C/C++ headers and code ... OK
* checking compilation flags used ... OK
* checking compiled code ... OK
* checking examples ... ERROR
Running examples in ‘R2BayesX-Ex.R’ failed
The error most likely occurred in:

> ### Name: fitted.bayesx
> ### Title: Extract BayesX Fitted Values and Residuals
> ### Aliases: fitted.bayesx residuals.bayesx
> ### Keywords: regression
> 
> ### ** Examples
> 
> ## Not run: 
> ##D ## generate some data
> ##D set.seed(121)
> ##D n <- 500
> ##D 
> ##D ## regressors
> ##D dat <- data.frame(x = runif(n, -3, 3), z = runif(n, 0, 1),
> ##D   w = runif(n, 0, 3))
> ##D 
> ##D ## generate response 
> ##D dat$y <- with(dat, 1.5 + sin(x) + z -3 * w + rnorm(n, sd = 0.6))
> ##D 
> ##D ## estimate model
> ##D b1 <- bayesx(y ~ sx(x) + z + w, data = dat)
> ##D 
> ##D ## extract fitted values
> ##D fit <- fitted(b1)
> ##D hist(fit, freq = FALSE)
> ##D 
> ##D ## now extract 1st model term
> ##D ## and plot it
> ##D fx <- fitted(b1, term = "sx(x)")
> ##D plot(fx)
> ##D 
> ##D ## extract model residuals
> ##D hist(residuals(b1))
> ##D 
> ##D ## extract partial residuals for sx(x)
> ##D pres <- residuals(b1, term = "sx(x)")
> ##D plot(fx, ylim = range(pres[, 2]))
> ##D points(pres)
> ## End(Not run)
> 
> ## now another example with
> ## use of read.bayesx.output
> ## load example data from
> ## package R2BayesX
> dir <- file.path(find.package("R2BayesX"), "examples", "ex01")
> b2 <- read.bayesx.output(dir)
Error in strsplit(x, as.character(split), fixed, perl, useBytes) : 
  NA in coercion to bool
Calls: read.bayesx.output -> search.bayesx.models -> strsplit
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: 1 ERROR