* using log directory ‘/data/gannet/ripley/R/packages/tests-LENGTH1/plmm.Rcheck’ * using R Under development (unstable) (2022-04-03 r82074) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘plmm/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘plmm’ version ‘0.1-1’ * 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 ‘plmm’ can be installed ... [7s/14s] 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 use of S3 registration ... OK * checking dependencies in R code ... NOTE Packages in Depends field not imported from: ‘Formula’ ‘sm’ These packages need to be imported from (in the NAMESPACE file) for when this namespace is loaded but not attached. * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [17s/52s] NOTE .var.ij: no visible global function definition for ‘hcv’ .var.ij: no visible global function definition for ‘h.select’ .var.ij: no visible global function definition for ‘sd’ .var.ij: no visible binding for global variable ‘sd’ .var.ij: no visible global function definition for ‘sm.regression’ LiStengos: no visible global function definition for ‘h.select’ LiStengos: no visible global function definition for ‘hcv’ LiStengos: no visible binding for global variable ‘sd’ LiStengos: no visible global function definition for ‘optimize’ LiStengos: no visible global function definition for ‘sm.regression’ cal_df_gamma1: no visible global function definition for ‘binning’ cal_df_gamma2: no visible global function definition for ‘binning’ iteration: no visible global function definition for ‘ave’ iteration: no visible global function definition for ‘lm’ iteration: no visible global function definition for ‘h.select’ iteration: no visible global function definition for ‘hcv’ iteration: no visible binding for global variable ‘sd’ iteration: no visible global function definition for ‘optimize’ iteration: no visible global function definition for ‘sm.regression’ iteration: no visible global function definition for ‘na.omit’ iteration0: no visible global function definition for ‘sm.regression’ iteration0: no visible global function definition for ‘ave’ iteration0: no visible global function definition for ‘lm’ iteration0: no visible global function definition for ‘h.select’ plmm: no visible global function definition for ‘Formula’ plmm: no visible global function definition for ‘model.response’ plmm: no visible global function definition for ‘model.matrix’ plmm: no visible global function definition for ‘terms’ plmm.bs: no visible global function definition for ‘Formula’ plmm.bs: no visible global function definition for ‘model.response’ plmm.bs: no visible global function definition for ‘model.matrix’ plmm.bs: no visible global function definition for ‘ave’ plmm.bs: no visible global function definition for ‘rnorm’ plmm.bs: no visible global function definition for ‘terms’ plot.plmm: no visible global function definition for ‘Formula’ plot.plmm: no visible global function definition for ‘model.response’ plot.plmm: no visible global function definition for ‘model.matrix’ plot.plmm: no visible global function definition for ‘terms’ plot.plmm: no visible global function definition for ‘sm.regression’ predict.plmm: no visible global function definition for ‘Formula’ predict.plmm: no visible global function definition for ‘model.matrix’ predict.plmm: no visible global function definition for ‘model.response’ predict.plmm: no visible global function definition for ‘sm.regression’ print.summary.plmm: no visible global function definition for ‘terms’ print.summary.plmm: no visible global function definition for ‘Formula’ ranef.plmm: no visible global function definition for ‘Formula’ ranef.plmm: no visible global function definition for ‘model.response’ ranef.plmm: no visible global function definition for ‘model.matrix’ select.h0: no visible global function definition for ‘Formula’ select.h0: no visible global function definition for ‘model.response’ select.h0: no visible global function definition for ‘terms’ select.h0: no visible global function definition for ‘model.matrix’ select.h0: no visible global function definition for ‘h.select’ select.h0: no visible global function definition for ‘hcv’ summary.bs.plmm: no visible binding for global variable ‘sd’ summary.bs.plmm: no visible binding for global variable ‘quantile’ var.plot: no visible global function definition for ‘Formula’ var.plot: no visible global function definition for ‘model.response’ var.plot: no visible global function definition for ‘model.matrix’ var.plot: no visible global function definition for ‘sm.regression’ wplmm: no visible global function definition for ‘Formula’ wplmm: no visible global function definition for ‘model.response’ wplmm: no visible global function definition for ‘model.matrix’ wplmm: no visible global function definition for ‘terms’ Undefined global functions or variables: Formula ave binning h.select hcv lm model.matrix model.response na.omit optimize quantile rnorm sd sm.regression terms Consider adding importFrom("stats", "ave", "lm", "model.matrix", "model.response", "na.omit", "optimize", "quantile", "rnorm", "sd", "terms") to your NAMESPACE file. * checking Rd files ... NOTE checkRd: (7) file 'plmm.data.Rd': \item in \describe must have non-empty label * 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 data for ASCII and uncompressed saves ... OK * checking examples ... [9s/19s] ERROR Running examples in ‘plmm-Ex.R’ failed The error most likely occurred in: > ### Name: wplmm > ### Title: Weighted Partially Linear Mixed Effects Model > ### Aliases: wplmm > ### Keywords: regression nonparametric > > ### ** Examples > > data(plmm.data) > model <- plmm(y1~x1+x2+x3|t1, random=cluster, data=plmm.data) > model2 <- wplmm(model, heteroX=x3, data=plmm.data) > summary(model2) Partially Linear Mixed Effects Model Call: wplmm(object = model, heteroX = x3, data = plmm.data) ----------- FAILURE REPORT -------------- --- failure: length > 1 in coercion to logical --- --- srcref --- : --- package (from environment) --- plmm --- call from context --- print.summary.plmm(x) --- call from argument --- class(x) == "summary.plmm" && x$iter > 0 --- R stacktrace --- where 1: print.summary.plmm(x) where 2: NextMethod() where 3: print.summary.wplmm(x) where 4: (function (x, ...) UseMethod("print"))(x) --- value of length: 2 type: logical --- [1] FALSE TRUE --- function from context --- function (x, ...) { if (any(class(x) == "summary.wplmm")) { vc.method <- ifelse(is.null(x$plmm.call$vc.method), "FC", eval(x$plmm.call$vc.method)) } else { vc.method <- ifelse(is.null(x$call$vc.method), "FC", eval(x$call$vc.method)) } nonpar <- attr(terms(Formula(x$formula), rhs = 2), "term.labels") nonpar.bws <- ifelse(is.null(x$call$nonpar.bws), "h.select", eval(x$call$nonpar.bws)) if (is.null(x$call$poly.index)) { poly.index <- "Local Linear" } else { poly.index <- ifelse(x$call$poly.index == 0, "Local Constant", "Local Linear") } cat("Partially Linear Mixed Effects Model \nCall:\n") cat(deparse(x$call), "\n") if (class(x) == "summary.plmm" && x$iter > 0) { cat("Convergence after", x$iter, "iterations \n") } cat("\nVariance components (", vc.method, ") :\n", sep = "") print(x$var.comp) cat("\n") cat("Fixed coefficients:\n") print(x$coefficients) cat("\n") cat("Nonparametric component:", nonpar, "\n") cat("Method:", poly.index, "\n") cat("Bandwidth selection:", nonpar.bws, "\n") cat("Bandwidth:", x$h.nonpar, "\n") if (any(class(x) == "summary.wplmm")) { if (is.null(x$call$var.fun.poly.index)) { var.fun.poly.index <- "Local Constant" } else { var.fun.poly.index <- ifelse(x$call$var.fun.poly.index == 0, "Local Constant", "Local Linear") } var.fun.bws <- ifelse(is.null(x$call$var.fun.bws), "ROT", eval(x$call$var.fun.bws)) cat("Variance function:", x$heteroX, "\n") cat("Method:", var.fun.poly.index, "\n") cat("Bandwidth selection:", var.fun.bws, "\n") cat("Bandwidth:", x$h.var.fun, "\n") } } --- function search by body --- Function print.summary.plmm in namespace plmm has this body. ----------- END OF FAILURE REPORT -------------- Fatal error: length > 1 in coercion to logical * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 3 NOTEs See ‘/data/gannet/ripley/R/packages/tests-LENGTH1/plmm.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 2:42.74, 55.94 + 6.78