* using log directory 'd:/Rcompile/CRANpkg/local/4.6/resilience.Rcheck' * using R Under development (unstable) (2025-09-24 r88873 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'resilience/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'resilience' version '2024.1.2' * 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 'resilience' can be installed ... OK * 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 ... [1s] 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 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 ... [2s] OK * checking Rd files ... [0s] 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 examples ... [4s] ERROR Running examples in 'resilience-Ex.R' failed The error most likely occurred in: > ### Name: prepost > ### Title: Identifying Predictors of Resilience to Stressors in Single-Arm > ### Studies of Pre-Post Change > ### Aliases: prepost > ### Keywords: pre-post resilience > > ### ** Examples > > data(tkr) > > names(tkr.dat) [1] "gender" "age" "bmi" "smoker" "post.Y" "pre.Y" > dim(tkr.dat) [1] 900 6 > > # pre-post change regression > ans1 <- prepost(post.Y ~ pre.Y + I(age-mean(age)) + I((age - mean(age))^2) + + bmi + gender + as.factor(smoker), data=tkr.dat, k=c(1.2, 1.5), nboot=200) > print(ans1) $naive.beta Estimate Std. Error t value Pr(>|t|) (Intercept) 19.7178591032 2.854492335 6.9076588 1.191603e-11 pre.Y -0.5979748068 0.030782785 -19.4256242 1.992061e-66 I(age - mean(age)) 0.0020523577 0.048759433 0.0420915 9.664389e-01 I((age - mean(age))^2) 0.0008103525 0.005131442 0.1579190 8.745704e-01 bmi -0.1790450020 0.052487064 -3.4112215 6.874338e-04 genderMale 1.3079861675 0.602779392 2.1699252 3.037969e-02 as.factor(smoker)no 1.3707020605 1.583720839 0.8654947 3.870916e-01 as.factor(smoker)yes -2.2213288479 2.389996267 -0.9294277 3.530179e-01 $corrected.beta k=1.2 k=1.5 (Intercept) 19.717859103 19.717859103 pre.Y -0.148764227 -0.302731778 I(age - mean(age)) 0.094717733 0.062956547 I((age - mean(age))^2) 0.004770432 0.003413109 bmi -0.040613971 -0.088061399 genderMale 0.426967826 0.728938087 as.factor(smoker)no 2.601359096 2.179549688 as.factor(smoker)yes -0.844440110 -1.316370638 $CI $CI$`k=1.2` lower upper (Intercept) 14.988040670 25.24105215 pre.Y -0.180513217 -0.10748431 I(age - mean(age)) -0.016416274 0.19076828 I((age - mean(age))^2) -0.005233055 0.01585068 bmi -0.146727801 0.08834430 genderMale -0.879873296 1.82622768 as.factor(smoker)no -0.088273089 4.93073417 as.factor(smoker)yes -6.440499998 3.70797768 $CI$`k=1.5` lower upper (Intercept) 14.820600380 24.97768084 pre.Y -0.353361215 -0.25161228 I(age - mean(age)) -0.042182715 0.14992547 I((age - mean(age))^2) -0.006212543 0.01551306 bmi -0.185765248 0.01307941 genderMale -0.599896402 1.82571041 as.factor(smoker)no -0.390565197 4.99516690 as.factor(smoker)yes -6.712479005 3.35686339 > > # Post regression > ans2 <- prepost(post.Y ~ pre.Y + I(age-mean(age)) + I((age - mean(age))^2) + + bmi + gender + as.factor(smoker), data=tkr.dat, + k=c(1.2, 1.5), change=FALSE, nboot=200, boot.method="norm") Error in { : task 2 failed - "creation of server socket failed: port 11962 cannot be opened" Calls: prepost -> %dopar% -> Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR