* using log directory ‘/srv/hornik/tmp/CRAN_pretest/DLMRMV.Rcheck’ * using R Under development (unstable) (2024-10-04 r87208) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 18.1.8 (9) Debian flang-new version 18.1.8 (9) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘DLMRMV/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘DLMRMV’ version ‘0.4.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [3s/3s] NOTE Maintainer: ‘Guangbao Guo ’ New submission Possibly misspelled words in DESCRIPTION: Guo (8:188) * 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 ‘DLMRMV’ can be installed ... [6s/6s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... NOTE Author field differs from that derived from Authors@R Author: ‘Guangbao Guo [aut, cre, cph],Limin Song [aut],Jiarui Li [aut]’ Authors@R: ‘Guangbao Guo [aut, cre, cph], Limin Song [aut], Jiarui Li [aut]’ * 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 ... [2s/2s] 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 ... [2s/2s] OK * checking whether the namespace can be unloaded cleanly ... [2s/2s] OK * checking loading without being on the library search path ... [2s/2s] 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 ... [9s/9s] NOTE ERLS: no visible binding for global variable ‘X0’ PMMMI: no visible binding for global variable ‘X0’ Undefined global functions or variables: X0 * checking Rd files ... [0s/0s] 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 examples ... [2s/2s] ERROR Running examples in ‘DLMRMV-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: AVGMLS > ### Title: AVGMLS > ### Aliases: AVGMLS > > ### ** Examples > > rm(list=ls()) > library(MASS) > library(matrixcalc) > n=1000;p=5;ratio=0.2 > nob=round(n-(n*ratio)) # > X0=matrix(rnorm(n*p,0,1),ncol=p) > beta=c(1:p) # > epsilon0=matrix(rnorm(n),n,1) # > Y0=X0 > data0=data.frame(Y=Y0,X=X0) # > misra=function(data,ratio){ + nob=round(n-(n*ratio)) # + data0[sample(n,n-nob),1]=NA # + return(data0) + } > data=misra(data=data0,ratio=0.2) # > Y=matrix(data[,1]) > KK=5;nk=n/KK > Y0m=matrix(rep(0,nk*KK),ncol = KK) # > X0m=matrix(rep(0,(nk*p)*KK),ncol=KK) # > Ym=matrix(rep(0,nk*KK),ncol = KK) # > for (i in 1:KK) + { + mr <- sample(1:n, nk, replace = TRUE) + R <- matrix(0, nrow = nk, ncol = n) + X1 <- R + Y1 <- R + Y2 <- R + Y0m[, i] <- Y1 + Ym[, i] <- Y2 # + XV=as.vector(X1) # + X0m[,i]=XV # + Ym[Ym==0]=NA # + } Error in Y0m[, i] <- Y1 : number of items to replace is not a multiple of replacement length Execution halted * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [0s/0s] 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