* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/MedSurvey.Rcheck’ * using R Under development (unstable) (2023-03-24 r84037) * using platform: x86_64-pc-linux-gnu (64-bit) * R was compiled by gcc (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2) GNU Fortran (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2) * running under: Fedora 34 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘MedSurvey/DESCRIPTION’ ... OK * this is package ‘MedSurvey’ version ‘1.1.1.3.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 ‘MedSurvey’ 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 R 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 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 ... [26s/18s] ERROR Running examples in ‘MedSurvey-Ex.R’ failed The error most likely occurred in: > ### Name: med.p.adjust > ### Title: To adjust the p values for multimediation tests > ### Aliases: med.p.adjust > > ### ** Examples > > ## Don't show: > #Toy example for check: > R <- 20 > wgtnames <- paste("repwgt", seq(0,R,by=1), sep="") > mwgtname=wgtnames[1] > repwgtnames=wgtnames[2:(R+1)] > model2 <- ' # outcome + numcg ~ u0*1 + c*workban + b1*sp_adltban + b2*sp_kidsban + # mediator + sp_adltban ~ u1*1 + a1*workban + sp_kidsban ~ u2*1 + a2*workban + #covariance of residuals + sp_adltban ~~ sp_kidsban + # indirect effect (a*b) + a1b1 := a1*b1 + a2b2 := a2*b2 + # total effect + total := c + (a1*b1) + (a2*b2) + ' > fit.BRR2 <- med.fit.BRR(model=model2, data=MedData, mwgtname=mwgtname, + repwgtnames=repwgtnames) > med.p.adjust(fit=fit.BRR2, med.eff=c('a1b1' , 'a2b2')) Adjustment for multi mediation tests: Effect p Value adj.p Value a1b1 0.004699562 0.009399125 a2b2 0.251050312 0.251050312 NOTE: p Value adjustment method is holm > ## End(Don't show) > ## No test: > R <- 160 > wgtnames <- paste("repwgt", seq(0,R,by=1), sep="") > mwgtname=wgtnames[1] > repwgtnames=wgtnames[2:(R+1)] > fayfactor=0.5 > > model2 <- ' # outcome + numcg ~ u0*1 + c*workban + b1*sp_adltban + b2*sp_kidsban + # mediator + sp_adltban ~ u1*1 + a1*workban + sp_kidsban ~ u2*1 + a2*workban + #covariance of residuals + sp_adltban ~~ sp_kidsban + # indirect effect (a*b) + a1b1 := a1*b1 + a2b2 := a2*b2 + # total effect + total := c + (a1*b1) + (a2*b2) + ' > fit.BRR2 <- med.fit.BRR(model=model2, data=MedData, mwgtname=mwgtname, + repwgtnames=repwgtnames, fayfactor, parallel='parallel', ncore=4) Error in .check_ncores(cores) : 4 simultaneous processes spawned Calls: med.fit.BRR -> mclapply -> .check_ncores Execution halted * checking PDF 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/blackswan/ripley/R/packages/tests-devel/MedSurvey.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:20.98, 79.28 + 8.82