* using log directory ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.5/Sim.DiffProc.Rcheck’
* using R Under development (unstable) (2025-01-24 r87627)
* using platform: x86_64-apple-darwin20
* R was compiled by
    Apple clang version 14.0.0 (clang-1400.0.29.202)
    GNU Fortran (GCC) 14.2.0
* running under: macOS Ventura 13.3.1
* using session charset: UTF-8
* checking for file ‘Sim.DiffProc/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘Sim.DiffProc’ version ‘4.9’
* 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 ‘Sim.DiffProc’ can be installed ... [17s/33s] OK
See 'https://www.r-project.org/nosvn/R.check/r-devel-macos-x86_64/Sim.DiffProc-00install.html' for details.
* used C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
* used SDK: ‘MacOSX11.3.sdk’
* 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 ... [0s/0s] OK
* checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
* checking whether the package can be unloaded cleanly ... [0s/0s] OK
* checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
* checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
* checking loading without being on the library search path ... [0s/0s] OK
* checking whether startup messages can be suppressed ... [0s/0s] 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 ... [26s/46s] OK
* checking Rd files ... [1s/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/0s] OK
* checking data for ASCII and uncompressed saves ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking compiled code ... NOTE
File ‘Sim.DiffProc/libs/Sim.DiffProc.so’:
  Found non-API call to R: ‘SET_TYPEOF’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
* checking installed files from ‘inst/doc’ ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... [15s/30s] ERROR
Running examples in ‘Sim.DiffProc-Ex.R’ failed
The error most likely occurred in:

> ### Name: rsde1d
> ### Title: Approximate transitional densities and random generation for 1-D
> ###   SDE
> ### Aliases: rsde1d rsde1d.default dsde1d dsde1d.default print.dsde1d
> ###   plot.dsde1d
> ### Keywords: sde ts mts random generators transition density
> 
> ### ** Examples
> 
> 
> ## Example 1:  
> ## dX(t) = (-2*(X(t)<=0)+2*(X(t)>=0)) *dt + 0.5 * dW(t)
> set.seed(1234)
> 
> f <- expression(-2*(x<=0)+2*(x>=0))
> g <- expression(0.5)
> res1 <- snssde1d(drift=f,diffusion=g,M=5000)
> x <- rsde1d(res1, at = 1)
> summary(x)
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
-4.075421 -2.064221  0.838452  0.006097  2.067562  3.892380 
> dens1 <-  dsde1d(res1, at = 1)
> dens1

 Density of X(t-t0)|X(t0) = 0 at time t = 1

Data: x (5000 obs.);	Bandwidth 'bw' = 0.348

Error in zapsmall(x[finite], digits = digits + zdigits) : 
  invalid 'digits'
Calls: <Anonymous> ... summary.data.frame -> format -> format.summaryDefault -> zapsmall
Execution halted
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ... [8s/18s] ERROR
  Running ‘TEX.r’ [1s/1s]
  Running ‘bridgesde.R’ [4s/8s]
  Running ‘fitsde.R’ [0s/1s]
  Running ‘fptsde.R’ [3s/6s]
  Running ‘rsde.R’ [1s/1s]
Running the tests in ‘tests/rsde.R’ failed.
Complete output:
  > library(Sim.DiffProc)
  Package 'Sim.DiffProc', version 4.9
  browseVignettes('Sim.DiffProc') for more informations.
  > 
  > ## 2-dim SDE
  > set.seed(1234)
  > 
  > # SDE's 2d
  > fx <- expression(3*(2-y),2*x)
  > gx <- expression(1,y)
  > mod2d <- snssde2d(drift=fx,diffusion=gx,x0=c(1,2),M=1000)
  > 
  > # random 
  > r2d <- rsde2d(mod2d,at=0.5)
  > summary(r2d)
         x                 y          
   Min.   :-5.6639   Min.   : 0.4349  
   1st Qu.:-0.3902   1st Qu.: 1.7160  
   Median : 0.5497   Median : 2.4000  
   Mean   : 0.3265   Mean   : 2.7618  
   3rd Qu.: 1.2958   3rd Qu.: 3.3156  
   Max.   : 3.3886   Max.   :12.1161  
  > 
  > # Marginal density 
  > 
  > denM <- dsde2d(mod2d,pdf="M", at=0.5)
  > denM
  
   Marginal density of X(t-t0)|X(t0)=1 at time t = 0.5
  
  Data: x (1000 obs.);	Bandwidth 'bw' = 0.2844
  
  Error in zapsmall(x[finite], digits = digits + zdigits) : 
    invalid 'digits'
  Calls: <Anonymous> ... summary.data.frame -> format -> format.summaryDefault -> zapsmall
  Execution halted
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking re-building of vignette outputs ... [54s/136s] OK
* checking PDF version of manual ... [8s/13s] OK
* DONE
Status: 2 ERRORs, 1 NOTE
* using check arguments '--no-clean-on-error '

* elapsed time (check, wall clock): 5:08