Re: [Rd] bug with mapply() on an S4 object

2012-11-27 Thread Hervé Pagès
Some formatting issues when copy/pasting the patch in the body of the email so I've attached the diff file. Cheers, H. On 11/27/2012 04:56 PM, Hervé Pagès wrote: Hi, Here is a patch for this (against current R-devel). The "caching" of the .Primitive for 'length' is taken from seq_along() C cod

Re: [Rd] bug with mapply() on an S4 object

2012-11-27 Thread Hervé Pagès
Hi, Here is a patch for this (against current R-devel). The "caching" of the .Primitive for 'length' is taken from seq_along() C code (in R-devel/src/main/seq.c). hpages@thinkpad:~/svn/R$ svn diff R-devel Index: R-devel/src/main/mapply.c ==

[Rd] R CMD check: better diagnosis for non-ASCII characters

2012-11-27 Thread Michael Friendly
[Env: R 2.15.1, Win Xp] Suggestion: Could the R script that checks for non-ASCII characters in R CMD check not give either: (a) a pointer to tools:::showNonASCIIfile, as in, try running tools:::showNonASCIIfile("Battig.Rd") or, (b) perhaps more useful, the result of tools:::showNonASCIIfile(fil

[Rd] R CMD check fails when run in a directory with parentheses in the pathname

2012-11-27 Thread Ben Bolker
For what it's worth: running R CMD check on a package when the outdir has parentheses in the pathname fails with the following error: * checking PDF version of manual ...sh: Syntax error: "(" unexpected WARNING LaTeX errors when creating PDF version. This typically indicates Rd problems. * che

[Rd] Puzzling behavior while testing

2012-11-27 Thread Terry Therneau
I'm testing a new release of survival, executing the following piece of code: for (testpkg in survdep) { z <- testInstalledPackage(testpkg, outDir="tests") cat(testpkg, c("Ok", "Failed")[z+1], "\n", file="progress", append=T) } The vector survdep contains the names of all 156 packag

Re: [Rd] Problems with MinGW and boost on Windows

2012-11-27 Thread Florian Burkart
Sorry, didn't realize text attachments get stripped as well... here is a link: http://pastebin.com/T3XhsjDY, and for the archives the actual text #define WIN32_LEAN_AND_MEAN #define NOMINMAX 1 #define _WIN32_WINNT 0x0601 #define NTDDI_VERSION 0x0601 #define _MSC_VER_WINNT _MSC_VER_WINNT_WIN7

[Rd] Problems with MinGW and boost on Windows

2012-11-27 Thread Florian Burkart
Hi, I am not sure how widespread this problem is, but definitely occurs for me on 64 bit Win 7 with a 64 bit R. I think I have isolated the issue (to a certain extent) in the attached Test.cpp file. Basically, I think linking with boost serialization is causing the plugin to fail. If I compile T