* using log directory 'd:/Rcompile/CRANpkg/local/4.5/Sim.DiffProc.Rcheck' * using R Under development (unstable) (2025-01-26 r87642 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'Sim.DiffProc' can be installed ... OK * used C compiler: 'gcc.exe (GCC) 13.3.0' * 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] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] OK * checking whether startup messages can be suppressed ... [0s] 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 ... [34s] 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] 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 compiled code ... NOTE File 'Sim.DiffProc/libs/x64/Sim.DiffProc.dll': 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 ... [26s] 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: ... summary.data.frame -> format -> format.summaryDefault -> zapsmall Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [21s] ERROR Running 'TEX.r' [1s] Running 'bridgesde.R' [7s] Running 'fitsde.R' [1s] Running 'fptsde.R' [4s] Running 'rsde.R' [1s] Running 'snssde.R' [6s] 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: ... 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 ... [93s] OK * checking PDF version of manual ... [24s] OK * checking HTML version of manual ... [7s] OK * DONE Status: 2 ERRORs, 1 NOTE