[R] testInstalledBasic / testInstalledPackages

Marc Schwartz marc_schwartz at me.com
Tue Apr 16 19:52:13 CEST 2013


On Apr 16, 2013, at 11:44 AM, Trina Patel <trinarpatel at gmail.com> wrote:

> Hi,
> 
> I installed R 3.0.0 on a Windows 2008 Server.
> 
> When I submitted the following code in R64,
> library(tools)
> testInstalledBasic(scope="devel")
> 
> I get the following message in the R Console:
>> library(tools)
>> testInstalledBasic(scope="devel")
> running tests of consistency of as/is.*
> creating ‘isas-tests.R’
>  running code in ‘isas-tests.R’
>  comparing ‘isas-tests.Rout’ to ‘isas-tests.Rout.save’ ...2550a2551
>>> 
> running tests of random deviate generation -- fails occasionally
>  running code in ‘p-r-random-tests.R’
>  comparing ‘p-r-random-tests.Rout’ to ‘p-r-random-tests.Rout.save’ ... OK
> running tests of primitives
>  running code in ‘primitives.R’
> running regexp regression tests
>  running code in ‘utf8-regex.R’
> running tests to possibly trigger segfaults
> creating ‘no-segfault.R’
>  running code in ‘no-segfault.R’
> Warning message:
> running command 'diff -bw
> "C:\Users\TRINA_~1\AppData\Local\Temp\Rtmp2FwZXW\Rdiffa1a88562f12b"
> "C:\Users\TRINA_~1\AppData\Local\Temp\Rtmp2FwZXW\Rdiffb1a8848c57620"'
> had status 1
> 
> When I compare the isas-tests.Rout  to isas-tests.Rout.save, as well
> as the two diff files listed above, it seems that there is one extra
> empty line in isas-tests.Rout.save. Is there any way to fix this error
> without modifying the isas-tests.Rout.save file?
> 
> Next I submitted the following code,
> testInstalledPackages(scope="base")
> 
> and got the message below in my R console:
>> testInstalledPackages(scope="base")
> Testing examples for package ‘base’
> Testing examples for package ‘tools’
>  comparing ‘tools-Ex.Rout’ to ‘tools-Ex.Rout.save’ ...
> 621c621
> < [1] "0cce1e42ef3fb133940946534fcf8896"
> ---
>> [1] "eb723b61539feef013de476e68b5c50a"
> 
> When comparing the files tools-ex.rout and tools-ex-rout.save, it
> seems this difference indicates an error in the md5sums for the file
> C:\Program Files\R\R-3.0.0\COPYING. Does this indicate a problem with
> my installation? Looking at the file C:\Program Files\R\R-3.0.0\MD5,
> leads me to suspect there might be an error in the test itself.
> 
> 
> Thanks for the help!


See:

  http://cran.r-project.org/doc/manuals/r-release/R-admin.html#Testing-a-Windows-Installation

from the R Installation and Administration Manual. Try running:

  Sys.setenv(LC_COLLATE = "C", LANGUAGE = "en")

before you run the tests.

You might also want to have a look at:

  https://github.com/marcschwartz/R-IQ-OQ

Regards,

Marc Schwartz



More information about the R-help mailing list