Re: [Rd] Package Unit Testing

2006-07-25 Thread Torsten Hothorn
On Mon, 24 Jul 2006, Gregor Gorjanc wrote: Martin Maechler maechler at stat.math.ethz.ch writes: miguel == miguel manese jjonphl at gmail.com on Mon, 3 Jul 2006 09:43:12 +0800 writes: miguel Hello, Do we have like an official unit testing miguel framework for packages? Like

[Rd] pari/gp interface

2006-07-25 Thread Robin Hankin
Hi I'm developing an R package that needs to execute some code written in pari/gp. I've used this before from an R package (elliptic) but the interface is very basic: the R function creates a string such as the following: string - echo ' ellwp ([ 2+0*I , 0+2*I ], 1+0*I )' | gp -q And then

Re: [Rd] pari/gp interface

2006-07-25 Thread Gabor Grothendieck
On Windows XP either of these work under R. Here echo and findstr are builtin Windows commands but you could substitute others: system(cmd /c echo abc | findstr a, intern = TRUE) shell(echo abc | findstr a, intern = TRUE) If its necessary to special case it then note that the R variable

Re: [Rd] Making a patch

2006-07-25 Thread Gregor Gorjanc
Gregor Gorjanc gregor.gorjanc at bfro.uni-lj.si writes: Hi, Andrew Robinson A.Robinson at ms.unimelb.edu.au writes: Dear R developers, is there a preferred format or strategy for making a patch to contribute to a package that is maintained by R-core? Berwin Turlach ... look

Re: [Rd] R and ACML

2006-07-25 Thread Hin-Tak Leung
Evan Cooch wrote: I lie (apparently) - turns out step (7) (below) *did* work. OK, so why didn't previous attempts at the problem (i.e., using LD_LIBRARY_PATH) work? Hmmm LD_LIBRARY_PATH affects runtime behavior, ./configure ... affects compile time behavior. The former can only

Re: [Rd] R and ACML

2006-07-25 Thread Evan Cooch
Hin-Tak Leung wrote: Evan Cooch wrote: I lie (apparently) - turns out step (7) (below) *did* work. OK, so why didn't previous attempts at the problem (i.e., using LD_LIBRARY_PATH) work? Hmmm LD_LIBRARY_PATH affects runtime behavior, ./configure ... affects compile time behavior. The

[Rd] valgrind complains about save (PR#9096)

2006-07-25 Thread charlie
valgrind complains about the save command in R 2.3.1 as shown by the script included below. Of course, I don't know whether this Conditional jump or move depends on uninitialised value(s) is really a bug. Experience with similar issues in my own code says it may be, but it is also hard to tell.

Re: [Rd] valgrind complains about save (PR#9096)

2006-07-25 Thread ripley
Please read the src/extra/zlib/deflate.c from line 1078: this is deliberate use of lookahead and explained there. Valgrind is making a correct comment but the report is not of an error. On Tue, 25 Jul 2006, [EMAIL PROTECTED] wrote: valgrind complains about the save command in R 2.3.1 as

Re: [Rd] Making a patch

2006-07-25 Thread Tony Plate
I've tried to summarize the information in this thread into a Wiki page: http://wiki.r-project.org/rwiki/doku.php?id=misc:rpatch Please make an additions or alterations as appropriate! -- Tony Plate Duncan Murdoch wrote: On 7/23/2006 6:04 PM, Andrew Robinson wrote: Dear R developers, is

[Rd] obscure bug in format.default?

2006-07-25 Thread Tony Plate
Output from format.default sometimes has whitespace around it when using big.mark=, and trim=TRUE. E.g.: # works ok as long as big.mark is not actually used: format(c(-1,1,10,999), big.mark=,, trim=TRUE) [1] -1 1 10 999 # but if big.mark is used, output is justified and not trimmed:

Re: [Rd] pari/gp interface

2006-07-25 Thread Henrik Bengtsson
On 7/25/06, Robin Hankin [EMAIL PROTECTED] wrote: Hi I'm developing an R package that needs to execute some code written in pari/gp. I've used this before from an R package (elliptic) but the interface is very basic: the R function creates a string such as the following: string - echo '

[Rd] mean(NA) returns -(1+.Machine$integer.max) (PR#9097)

2006-07-25 Thread btyner
Full_Name: Benjamin Tyner Version: 2.3.0 OS: linux-gnu (debian) Submission from: (NULL) (71.98.75.54) mean(NA) returns -2147483648 on my system, which is -(1+.Machine$integer.max) sessionInfo() Version 2.3.0 (2006-04-24) i686-pc-linux-gnu attached base packages: [1] methods stats

Re: [Rd] pari/gp interface

2006-07-25 Thread Prof Brian Ripley
The issue is that system() on Windows does not run a shell, so piping is not going to be available: used shell() instead. Then the problem is that the shell available is OS-specific, and pretty minimal on Windows 95/98/ME. If you can ignore those (and they are getting rarer), cmd.exe can be

[Rd] Install R-patched_2006-07-13 on i386-pc-solaris2.10 with Sun Studio 11

2006-07-25 Thread Latchezar Dimitrov
Dear R-developers: I'm trying to build a 64-bit R-patched_2006-07-24 on SunFire V40z with on Solaris OS 10 64-bit kernel and using Sun Studio 11 compilers. Everything runs OK until it gets to building package tools (all.R) where it fails. Bellow is how I tried it (I can provide any other