- using R version 4.5.0 beta (2025-03-29 r88069)
- using platform: aarch64-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.4
- using session charset: UTF-8
- checking for file ‘popdemo/DESCRIPTION’ ... OK
- this is package ‘popdemo’ version ‘1.3-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 ‘popdemo’ can be installed ... [4s/5s] OK
See the install log for details.
- checking installed package size ... INFO
installed size is 5.5Mb
sub-directories of 1Mb or more:
doc 4.9Mb
- 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking whether startup messages can be suppressed ... [1s/1s] 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 ... [4s/5s] OK
- checking Rd files ... [0s/0s] NOTE
checkRd: (-1) plot.tfam.Rd:17: Lost braces
17 | objects created using code{tfam_inertia}.}
| ^
checkRd: (-1) popdemo-package.Rd:32: Lost braces
32 | code{\link{inertia}} measures asymptotic population density relative to stable
| ^
checkRd: (-1) tfa_inertia.Rd:33: Lost braces
33 | item{inertia}{inertias of perturbed matrices}
| ^
checkRd: (-1) tfa_inertia.Rd:33: Lost braces
33 | item{inertia}{inertias of perturbed matrices}
| ^
- 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 LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/2s] ERROR
Running examples in ‘popdemo-Ex.R’ failed
The error most likely occurred in:
> ### Name: tfs_inertia
> ### Title: Calculate sensitivity of inertia using transfer functions
> ### Aliases: tfs_inertia tfsm_inertia
>
> ### ** Examples
>
> # Create a 3x3 matrix
> ( A <- matrix(c(0,1,2,0.5,0.1,0,0,0.6,0.6), byrow=TRUE, ncol=3) )
[,1] [,2] [,3]
[1,] 0.0 1.0 2.0
[2,] 0.5 0.1 0.0
[3,] 0.0 0.6 0.6
>
> # Create an initial stage structure
> ( initial <- c(1,3,2) )
[1] 1 3 2
>
> # Calculate the sensitivity matrix for the upper bound on inertia
> tfsm_inertia(A, bound="upper",tolerance=1e-7)
[,1] [,2] [,3]
[1,] 0.0000000 -0.1726318 0.3725853
[2,] -0.7077579 -0.7930524 0.0000000
[3,] 0.0000000 -0.9756049 0.7433468
>
> # Calculate the sensitivity of simultaneous perturbation to
> # A[1,3] and A[2,3] for the lower bound on inertia
> tfs_inertia(A, d=c(1,0,0), e=c(0,1,1), bound="lower")
Error in solve.default((z * I) - A) :
system is computationally singular: reciprocal condition number = 2.06614e-16
Calls: tfs_inertia -> .tf -> as.vector -> %^% -> solve -> solve.default
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [13s/18s] OK
- checking PDF version of manual ... [5s/7s] OK
- DONE
Status: 1 ERROR, 1 NOTE
- using check arguments '--no-clean-on-error '