* using log directory 'd:/Rcompile/CRANpkg/local/3.6/cplm.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'cplm/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'cplm' version '0.7-9' * 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 'cplm' 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * loading checks for arch 'i386' ** 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 * loading checks for arch 'x64' ** 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 ... [20s] OK * checking Rd files ... 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 ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ** running examples for arch 'i386' ... ERROR Running examples in 'cplm-Ex.R' failed The error most likely occurred in: > ### Name: gini > ### Title: The Gini index > ### Aliases: gini > ### Keywords: models > > ### ** Examples > > ## Not run: > ##D > ##D # Let's fit a series of models and compare them using the Gini index > ##D da <- subset(AutoClaim, IN_YY == 1) > ##D da <- transform(da, CLM_AMT = CLM_AMT / 1000) > ##D > ##D P1 <- cpglm(CLM_AMT ~ 1, data = da, offset = log(NPOLICY)) > ##D > ##D > ##D P2 <- cpglm(CLM_AMT ~ factor(CAR_USE) + factor(REVOLKED) + > ##D factor(GENDER) + factor(AREA) + > ##D factor(MARRIED) + factor(CAR_TYPE), > ##D data = da, offset = log(NPOLICY)) > ##D > ##D P3 <- cpglm(CLM_AMT ~ factor(CAR_USE) + factor(REVOLKED) + > ##D factor(GENDER) + factor(AREA) + > ##D factor(MARRIED) + factor(CAR_TYPE) + > ##D TRAVTIME + MVR_PTS + INCOME, > ##D data = da, offset = log(NPOLICY)) > ##D > ##D da <- transform(da, P1 = fitted(P1), P2 = fitted(P2), P3 = fitted(P3)) > ##D > ##D # compute the Gini indices > ##D gg <- gini(loss = "CLM_AMT", score = paste("P", 1:3, sep = ""), > ##D data = da) > ##D gg > ##D > ##D # plot the Lorenz curves > ##D theme_set(theme_bw()) > ##D plot(gg) > ##D plot(gg, overlay = FALSE) > ##D > ## End(Not run) > > > > ### *