Re: [Rd] Problem using F77_CALL(dgemm) in a package

2011-02-22 Thread Jason Rudy
Thanks for the tip. That API could make my work considerably easier. Jason On Tue, Feb 22, 2011 at 7:37 AM, Douglas Bates wrote: > On Sun, Feb 20, 2011 at 4:39 PM, Jason Rudy wrote: >> I've never used C++ before, so for this project I think I will stick >> with just using the BLAS and LAPACK r

Re: [Rd] Problem using F77_CALL(dgemm) in a package

2011-02-22 Thread Jason Rudy
You're right about the code preceding .C. I stripped down the .C and .Call codes to be as similar as possible, and the timings were much closer. R code: Call_matrix_multiply = function(A,B){ C <- matrix(0,nrow(A),ncol(B)) .Call("R_CALL_matrix_multiply", A, B, C) return(C)

Re: [Rd] How to make a package with help pages in multiple languages?

2011-02-22 Thread Duncan Murdoch
On 22/02/2011 2:36 PM, Kjetil Halvorsen wrote: This question was adsked on R-help-es, and got no responses there. the OP asked for help pages in english and spanish. Any ideas how this should be done? I guess there really should be a solution for any number of languages. I don't think there is

Re: [Rd] How to make a package with help pages in multiple languages?

2011-02-22 Thread Prof Brian Ripley
On Tue, 22 Feb 2011, Kjetil Halvorsen wrote: This question was adsked on R-help-es, and got no responses there. the OP asked for help pages in english and spanish. Any ideas how this should be done? I guess there really should be a solution for any number of languages. Rcmdr had English and Sp

[Rd] How to make a package with help pages in multiple languages?

2011-02-22 Thread Kjetil Halvorsen
This question was adsked on R-help-es, and got no responses there. the OP asked for help pages in english and spanish. Any ideas how this should be done? I guess there really should be a solution for any number of languages. Kjetil __ R-devel@r-project.

Re: [Rd] Anomaly in [.terms

2011-02-22 Thread William Dunlap
> -Original Message- > From: r-devel-boun...@r-project.org > [mailto:r-devel-boun...@r-project.org] On Behalf Of Terry Therneau > Sent: Monday, February 21, 2011 11:32 AM > To: r-devel@r-project.org > Subject: [Rd] Anomaly in [.terms > > > This arose when working on an addition to coxp

Re: [Rd] trouble compiling RMySQL (and others) for 64 bit windows.

2011-02-22 Thread zoolium
I recently found a solution to the RMySQL compiling problem. You however there is one additional requirement at present (with the MySQL server version 5.5 & R2.12.1) follow the http://biostat.mc.vanderbilt.edu/wiki/Main/RMySQL instructions at present as the locations of the libmySQL.dll differs

Re: [Rd] error in memCompress() in make check

2011-02-22 Thread Petr Savicky
On Tue, Feb 22, 2011 at 01:38:07PM +0100, Petr Savicky wrote: ... > The commands > > txt <- readLines(file.path(R.home("doc"), "COPYING")) > txt.xz <- memCompress(txt, "x") > > do not produce an error, if the compiled R runs in the same shell, > where "make check" was run. However, they produ

[Rd] Tcl/Tk Binding % Substitutions

2011-02-22 Thread Paul Roebuck
How should we translate something like the following? Tcl> bind Frame {%W config -bg red} such that the widget id (and other % substitutions) can be accessed in R callback? one <- tkframe(width=30, height=30) tkbind("Frame", "", function(TBD} { ## Do what

Re: [Rd] Problem using F77_CALL(dgemm) in a package

2011-02-22 Thread Douglas Bates
On Sun, Feb 20, 2011 at 4:39 PM, Jason Rudy wrote: > I've never used C++ before, so for this project I think I will stick > with just using the BLAS and LAPACK routines directly.  Another issue > is that I will need to do some sparse matrix computations, for which I > am planning to use CSPARSE, a

Re: [Rd] Problem using F77_CALL(dgemm) in a package

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 1:55 AM, Jason Rudy wrote: > I just tried that myself and the .Call version is substantially > faster. It seems like there is a lot more going on in the .Call C > code than the .C. Why is .Call faster? Does it have to do with the > way arguments are passed into the C functio

Re: [Rd] error in memCompress() in make check

2011-02-22 Thread Petr Savicky
On Tue, Feb 22, 2011 at 11:25:50AM +, Prof Brian Ripley wrote: > So it seems that there is something wrong with the liblzma library > used on that machine. Did it use the version supplied with R or an > external library (which is the default if one is found)? My first > step would be to fo

Re: [Rd] Problem using F77_CALL(dgemm) in a package

2011-02-22 Thread Jason Rudy
I just tried that myself and the .Call version is substantially faster. It seems like there is a lot more going on in the .Call C code than the .C. Why is .Call faster? Does it have to do with the way arguments are passed into the C function? I tried with DUP=FALSE and NAOK=TRUE, but .Call was

Re: [Rd] error in memCompress() in make check

2011-02-22 Thread Prof Brian Ripley
So it seems that there is something wrong with the liblzma library used on that machine. Did it use the version supplied with R or an external library (which is the default if one is found)? My first step would be to force the internal version via --with-system-xz=no. That error appears to b

[Rd] error in memCompress() in make check

2011-02-22 Thread Petr Savicky
Dear R developers: When i run "make check" in R-patched_2011-02-12 and R-devel_2011-02-22 on a specific machine, the test fails and the file tests/Examples/base-Ex.Rout.fail ends with > txt.xz <- memCompress(txt, "x") Error in memCompress(txt, "x") : internal error 5 in memCompress Exec

[Rd] X error on r-forge

2011-02-22 Thread Claudia Beleites
Dear all, since a few days, my package hyperSpec does not build on r-forge. I have no idea whether this is due to my code or whether something is wrong with r-forge. It fails with an X server error: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed re