* using log directory 'd:/Rcompile/CRANpkg/local/2.14/lessR.Rcheck' * using R version 2.14.2 (2012-02-29) * using platform: i386-pc-mingw32 (32-bit) * using session charset: ISO8859-1 * checking for file 'lessR/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'lessR' version '2.4.2' * 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 whether package 'lessR' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for portable file names ... OK * checking DESCRIPTION meta-information ... OK * checking top-level 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 * 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 for unstated 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 ... NOTE .cr.data.frame: no visible binding for global variable 'mycor' .getlabels: no visible binding for global variable 'mylabels' .reg1Basic: no visible binding for global variable 'lm.out' .reg2Relations: no visible binding for global variable 'lm.out' .reg3Residual: no visible binding for global variable 'lm.out' .reg4Pred: no visible binding for global variable 'lm.out' .reg5Plot: no visible binding for global variable 'lm.out' .varlist: no visible binding for global variable 'mylabels' ANOVA: no visible binding for global variable 'mydata' ANOVA: no visible binding for global variable 'av.out' BarChart: no visible binding for global variable 'mydata' BoxPlot: no visible binding for global variable 'mydata' Correlation: no visible binding for global variable 'mydata' CountAll: no visible binding for global variable 'mydata' Density: no visible binding for global variable 'mydata' Histogram: no visible binding for global variable 'mydata' LineChart: no visible binding for global variable 'mydata' Model: no visible binding for global variable 'mydata' PieChart: no visible binding for global variable 'mydata' Plot: no visible binding for global variable 'mydata' Read: no visible binding for global variable 'mydata' Recode: no visible binding for global variable 'mydata' Regression: no visible binding for global variable 'mydata' Regression: no visible binding for global variable 'lm.out' SummaryStats: no visible binding for global variable 'mydata' Write: no visible binding for global variable 'mydata' corCFA: no visible binding for global variable 'mycor' corEFA: no visible binding for global variable 'mycor' corListVars: no visible binding for global variable 'mycor' corProp: no visible binding for global variable 'mycor' corReflect: no visible binding for global variable 'mycor' corReorder: no visible binding for global variable 'mycor' corScree: no visible binding for global variable 'mycor' label: no visible binding for global variable 'mylabels' ttest: no visible binding for global variable 'mydata' values: no visible binding for global variable 'mydata' * 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 for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking compiled code ... OK * checking examples ... ** running examples for arch 'i386' ... ERROR Running examples in 'lessR-Ex.R' failed The error most likely occurred in: > ### Name: BarChart > ### Title: Bar Chart of One or Two Variables > ### Aliases: BarChart bc bc.default bc.data.frame > ### Keywords: bar chart color > > ### ** Examples > > # --------------------------------------------------------- > # generate some data in data frame mydata for two variables > # --------------------------------------------------------- > > # Pain is an ordered factor, Gender is an unordered factor > # Place in data frame mydata to simulate reading with rad > Pain <- sample(c("None", "Some", "Much", "Massive"), size=25, replace=TRUE) > Pain <- factor(Pain, levels=c("None", "Some", "Much", "Massive"), ordered=TRUE) > Gender <- sample(c("Male", "Female"), size=25, replace=TRUE) > Gender <- factor(Gender) > mydata <- data.frame(Pain, Gender) > rm(Pain); rm(Gender) > > > # -------------------------------------------- > # barchart from the data for a single variable > # -------------------------------------------- > > # for each level of Pain, display the frequencies > # Pain is an ordered factor, so the bar colors are ordered > BarChart(Pain) dev.new(): using pdf(file="Rplots4.pdf") --- Pain --- None Some Much Massive Total Frequencies: 6 6 6 7 25 Proportions: 0.240 0.240 0.240 0.280 1.000 > # short name > bc(Pain) dev.new(): using pdf(file="Rplots5.pdf") --- Pain --- None Some Much Massive Total Frequencies: 6 6 6 7 25 Proportions: 0.240 0.240 0.240 0.280 1.000 > # compare to standard R bar plot, which requires mydata$ reference > barplot(table(mydata$Pain)) > > # Gender is unordered, so one color used for all the bars > BarChart(Gender) dev.new(): using pdf(file="Rplots6.pdf") Error in interpolate(x, colors[, 1]) : need at least two non-NA values to interpolate Calls: BarChart ... .bc.default -> colorRampPalette -> colorRamp -> interpolate Execution halted