[Rd] Problem running checks after building R-patched

Berend Hasselman bhh at xs4all.nl
Wed May 7 13:20:51 CEST 2014


On 07-05-2014, at 11:23, Martin Maechler <maechler at stat.math.ethz.ch> wrote:

>>>>>> Berend Hasselman <bhh at xs4all.nl>
>>>>>>    on Wed, 7 May 2014 09:24:46 +0200 writes:
> 
>> I am compiling the latest R-patched (Revision: 65533) Ubuntu Lucid (10.04).
> 
>> Building succeeds but make check stops with an error.
>> The output in the terminal from make check:
> 
>> Testing examples for package ‘base’
>> Testing examples for package ‘tools’
>> Error: testing 'tools' failed
>> Execution halted
>> make[3]: *** [test-Examples-Base] Error 1
>> make[2]: *** [test-Examples] Error 2
>> make[1]: *** [test-all-basics] Error 1
>> make: *** [check] Error 2
> 
>> The last lines in  the output of tests/Examples/tools-Ex.Rout.fail are
> 
>>> ### ** Examples
>>> 
>>> gVigns <- pkgVignettes("grid")
>>> ## Don't show: 
>>> `%=f=%` <- function(a, b) normalizePath(a) == normalizePath(b)
>>> with(gVigns,
>> +       stopifnot(engines == "utils::Sweave",
>> +                 pkgdir %=f=% system.file(package="grid"),
>> +                 dir    %=f=% system.file(package="grid", "doc"),
>> +                 (n. <- length(docs)) >= 12, # have 13 
>> +                 n. == length(names), n. == length(engines),
>> +                 length(msg) == 0) ) # as it is a 'base' package
>> Error: (n. <- length(docs)) >= 12 is not TRUE
>> Execution halted
> 
>> How do I fix this, if possible?
>> Berend
> 
> Well, as it works correctly for others,
> why don't you execute the above code in your (self installed ?) version
> of R, and find out why -- I think -- the vignettes of grid were
> not built / installed correctly ?
> 
> Martin


I have the release version R-3.1.0 installed (built and checked with NO error messages).

I don't have pdflatex installed; that is detected by configure.

I have found a difference between ……/tests/Examples/tools-Ex.R in R-3.1.0 and R-patched.
After running this command

 diff R-3.1.0-build/tests/Examples/tools-Ex.R R-patched-build/tests/Examples/tools-Ex.R > diff-3.1.0-3.1.0patched-tools-Ex.R.txt

the file with the differences contains this:

155a156,184
> nameEx("buildVignettes")
> ### * buildVignettes
> 
> flush(stderr()); flush(stdout())
> 
> ### Name: buildVignettes
> ### Title: List and Build Package Vignettes
> ### Aliases: buildVignettes pkgVignettes
> ### Keywords: utilities documentation
> 
> ### ** Examples
> 
> gVigns <- pkgVignettes("grid")
> ## Don't show: 
>  `%=f=%` <- function(a, b) normalizePath(a) == normalizePath(b)
>  with(gVigns,
>       stopifnot(engines == "utils::Sweave",
>                 pkgdir %=f=% system.file(package="grid"),
>                 dir    %=f=% system.file(package="grid", "doc"),
>                 (n. <- length(docs)) >= 12, # have 13 
>                 n. == length(names), n. == length(engines),
>                 length(msg) == 0) ) # as it is a 'base' package
> ## End Don't show
> stopifnot("grid" %in% gVigns$names,
>           inherits(gVigns, "pkgVignettes"))
> 
> 
> 
> cleanEx()

which would indicate that tool-Ex.R contains an additional test.

Berend


More information about the R-devel mailing list