* using log directory ‘/data/localhost/ripley/R/packages/tests-donttest/GPRMortality.Rcheck’ * using R Under development (unstable) (2026-11-30 r91009) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) GNU Fortran (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-11-30 22:07:43 UTC * checking for file ‘GPRMortality/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘GPRMortality’ version ‘0.1.0’ * 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 ‘GPRMortality’ can be installed ... 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 ... 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 LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘GPRMortality-Ex.R’ failed The error most likely occurred in: > ### Name: GPRMortality > ### Title: Gaussian Process Regression for estimation and projection each > ### age-sex combination of mortality rates > ### Aliases: GPRMortality > > ### ** Examples > > > library("rstan") > library("GPRMortality") > head(data.mortality) sex age_cat location year pop mortality completeness 1 0 1 0 1996 9598 0.016961640 0.9358418 2 0 10 0 1996 27312 0.003199126 0.8011488 3 0 11 0 1996 20351 0.004845384 0.8011488 4 0 12 0 1996 17514 0.005345185 0.8011488 5 0 13 0 1996 16202 0.008936679 0.8011488 6 0 14 0 1996 15946 0.012602623 0.8011488 > head(data.mean) location age_cat sex year mean 1 0 1 0 1990 0.01765111 2 0 1 0 1991 0.01711163 3 0 1 0 1992 0.01660565 4 0 1 0 1993 0.01612624 5 0 1 0 1994 0.01567145 6 0 1 0 1995 0.01523976 > mortality <- data.mortality[data.mortality$location%in%c(0,5) & + data.mortality$age_cat%in%c(1,10) & data.mortality$sex%in%c(0,1),] > mean <- data.mean[data.mean$location%in%c(0,5) & + data.mean$age_cat%in%c(1,10) & data.mean$sex%in%c(0,1),] > # WARNING: The following code will take a long time to run > ## No test: > fit = GPRMortality(mortality,mean,minYear=1990,maxYear=2015, + nu = 2,rho_ =0.4 ,product = 0.1 ,verbose=TRUE) TRANSLATING MODEL '' FROM Stan CODE TO C++ CODE NOW. Error in stanc(file = file, model_code = model_code, model_name = model_name, : 0 Syntax error in 'string', line 8, column 10 to column 12, parsing error: ------------------------------------------------- 6: int Mx; //Number of data for each source 7: vector[Mx] Y; 8: int YEAR[Mx]; ^ 9: vector[Mx] SIGMAy; 10: cov_matrix[myT] C; ------------------------------------------------- Ill-formed declaration. ";" expected after variable declaration. It looks like you are trying to use the old array syntax. Please use the new syntax: array[Mx] int YEAR; Calls: GPRMortality -> rbind -> RunModel -> stan -> stan_model -> stanc 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 * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/localhost/ripley/R/packages/tests-donttest/GPRMortality.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:48.48, 56.08 + 47.35