* using log directory 'd:/Rcompile/CRANpkg/local/3.4/lessR.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'lessR/DESCRIPTION' ... OK * this is package 'lessR' version '3.8.4' * 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 'lessR' 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 * 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 ... [62s] 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 examples ... ERROR Running examples in 'lessR-Ex.R' failed The error most likely occurred in: > ### Name: Plot > ### Title: Plot One or Two Continuous and/or Categorical Variables > ### Aliases: Plot pl ScatterPlot sp BoxPlot bx ViolinPlot vp > ### Keywords: plot color grouping variable > > ### ** Examples > > # read the data > d <- rd("Employee", in_lessR=TRUE, quiet=TRUE) > d <- Subset(random=.6, quiet=TRUE) # less computationally intensive > > #--------------------------------------------------- > # traditional scatterplot with two numeric variables > #--------------------------------------------------- > > # scatterplot with all defaults > Plot(Years, Salary) dev.new(): using pdf(file="Rplots138.pdf") >>> Pearson's product-moment correlation Number of paired values with neither missing, n = 21 Sample Correlation of Years and Salary: r = 0.861 Alternative Hypothesis: True correlation is not equal to 0 t-value: 7.366, df: 19, p-value: 0.000 95% Confidence Interval of Population Correlation Lower Bound: 0.682 Upper Bound: 0.942 > # or use abbreviation sp in place of Plot > # or use full expression ScatterPlot in place of Plot > > # maximum information, minimum input: scatterplot + > # means, outliers, ellipse, least-squares lines with and w/o outliers > Plot(Years, Salary, enhance=TRUE) [Ellipse with Murdoch and Chow's function ellipse from the ellipse package] dev.new(): using pdf(file="Rplots139.pdf") >>> Pearson's product-moment correlation Number of paired values with neither missing, n = 21 Sample Correlation of Years and Salary: r = 0.861 Alternative Hypothesis: True correlation is not equal to 0 t-value: 7.366, df: 19, p-value: 0.000 95% Confidence Interval of Population Correlation Lower Bound: 0.682 Upper Bound: 0.942 >>> Outlier analysis with Mahalanobis Distance MD ID ----- ----- 6.30 Capelle, Adam 6.20 Correll, Trevon 4.63 Korhalkar, Jessica 4.19 James, Leslie 2.55 Cassinelli, Anastis ... ... > > # extend x and y axes > Plot(Years, Salary, scale_x=c(-10, 35, 10), scale_y=c(0,200000,10)) dev.new(): using pdf(file="Rplots140.pdf") >>> Pearson's product-moment correlation Number of paired values with neither missing, n = 21 Sample Correlation of Years and Salary: r = 0.861 Alternative Hypothesis: True correlation is not equal to 0 t-value: 7.366, df: 19, p-value: 0.000 95% Confidence Interval of Population Correlation Lower Bound: 0.682 Upper Bound: 0.942 > > > > #------------------------------------------------------ > # scatterplot matrix from a vector of numeric variables > #------------------------------------------------------ > > # with least squares fit line > Plot(c(Salary, Years, Pre), fit="lm") dev.new(): using pdf(file="Rplots141.pdf") > > > #-------------------------------------------------------------- > # Trellis graphics and by for groups with two numeric variables > #-------------------------------------------------------------- > > # Trellis plot with condition on 1-variable > # optionally re-order default alphabetical R ordering by converting > # to a factor with lessR factors (which also does multiple variables > d$Gender <- factors(Gender, levels=c("M", "F")) > Plot(Years, Salary, by1=Gender) Error in sort.list(y) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list? Calls: Plot -> factor -> sort.list Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR