Re: [Rd] R CMD build when the package name is different from the directory name

2006-09-28 Thread Arne Henningsen
Dear Seth, Thank you for your message. On Thursday 28 September 2006 16:22, Seth Falcon wrote: > Arne Henningsen <[EMAIL PROTECTED]> writes: > > Hi, > > > > I was really happy when I saw that in R version 2.3.0 "R CMD check" works > > for packages whose package name is different from the director

[Rd] Build error/zlib question

2006-09-28 Thread James MacDonald
Hi, I am unable to build a package I maintain using a relatively current build of R-2.4.0 alpha, whereas the package builds just fine on R-2.3.1. Both versions of R were built from source. I'm hoping a guRu might be able to give some help. Some snippets from the build process: R-2.3.1 making

[Rd] Documentation patch for 'match' and 'palette'

2006-09-28 Thread Michael Toews
Here is a patch to improve documentation for finding useful, yet newish, functions: 'findInterval' and 'colorRamp'. I think that it is worthwhile to mention these in the 'seealso' section of the similar 'match' and 'palette' documents. I had difficulty finding these functions at first, as they

Re: [Rd] Accesing R c-code

2006-09-28 Thread Sean Davis
On Thursday 28 September 2006 13:36, Patricia Bautista Otero wrote: > Hi r-devel, > > I am working on a R extension. My package is writen on C++ and in my code > I require a R function object. I received the R function object, then a > point x in which the "function" is going to be evaluated is gen

[Rd] Accesing R c-code

2006-09-28 Thread Patricia Bautista Otero
Hi r-devel, I am working on a R extension. My package is writen on C++ and in my code I require a R function object. I received the R function object, then a point x in which the "function" is going to be evaluated is generated in some way, then I evalue the "function" at x and I repete this pr

Re: [Rd] unable to load lapack.so

2006-09-28 Thread Prof Brian Ripley
On Thu, 28 Sep 2006, Hiroyuki Kawakatsu wrote: > Hi, > > I'm having problems using ACML with R. I made two changes in > config.site by setting > LDFLAGS="-L/opt/acml3.1.0/gnu64/lib" > BLAS_LIBS="-lacml" That's not how the R-admin manual describes how to do this. Please try the way it does descr

Re: [Rd] Warning on backslash sequences (was sprintf behavior)

2006-09-28 Thread Bill Dunlap
On Thu, 28 Sep 2006, Prof Brian Ripley wrote: > I don't understand why \` is regarded as intentional. It crops up in > packages date and survival (the same code) in > > stop(paste("\`", .Generic, "' not meaningful for dates", > sep = "")) > > which clearly should use s

Re: [Rd] apply: new behaviour for factors in R-2.4.0

2006-09-28 Thread Prof Brian Ripley
On Thu, 28 Sep 2006, Christoph Buser wrote: > Dear Brian > > Thank you for your answer and the comment you included on the > apply() help page. > > 1) > > You are correct. My data.frame is coerced into a matrix in > apply() > > 2) > > I agree that the new version of unlist() is better and works >

Re: [Rd] Warning on backslash sequences (was sprintf behavior)

2006-09-28 Thread Prof Brian Ripley
On Thu, 28 Sep 2006, Peter Dalgaard wrote: > "Gabor Grothendieck" <[EMAIL PROTECTED]> writes: > >> That's a good idea for the case I mentioned although there is still >> the case where one requires a single quoted string (maybe for >> generating code for some other language) and that is >> not han

[Rd] unable to load lapack.so

2006-09-28 Thread Hiroyuki Kawakatsu
Hi, I'm having problems using ACML with R. I made two changes in config.site by setting LDFLAGS="-L/opt/acml3.1.0/gnu64/lib" BLAS_LIBS="-lacml" ./config and make go through but when I try to use the lm() function, I get the error message Error in chol2inv(Qr$qr[p1, p1, drop = FALSE]) : l

Re: [Rd] Warning on backslash sequences (was sprintf behavior)

2006-09-28 Thread Peter Dalgaard
"Gabor Grothendieck" <[EMAIL PROTECTED]> writes: > That's a good idea for the case I mentioned although there is still > the case where one requires a single quoted string (maybe for > generating code for some other language) and that is > not handled by deparse. Yes, but there be devils lurking

Re: [Rd] Warning on backslash sequences (was sprintf behavior)

2006-09-28 Thread Gabor Grothendieck
On 28 Sep 2006 16:33:17 +0200, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > "Gabor Grothendieck" <[EMAIL PROTECTED]> writes: > > > One area where a problem might appear is if one is > > generating R code, e.g. > > > > paste("a <-", dQuote("xyz")) # wrong! > > > > since in UTF-8 dQuote (and sQuot

Re: [Rd] R CMD build when the package name is different from the directory name

2006-09-28 Thread Gabor Grothendieck
I normally only keep one version locally since everything else can be retrieved, if needed, from the repository. If you do want to keep multiple versions locally then, of course, there is still a potential problem. On 9/28/06, Arne Henningsen <[EMAIL PROTECTED]> wrote: > Dear Gabor, > > Thank you

Re: [Rd] Warning on backslash sequences (was sprintf behavior)

2006-09-28 Thread Peter Dalgaard
"Gabor Grothendieck" <[EMAIL PROTECTED]> writes: > One area where a problem might appear is if one is > generating R code, e.g. > > paste("a <-", dQuote("xyz")) # wrong! > > since in UTF-8 dQuote (and sQuote) do not necessarily > generate double quotes (and single quotes) so one winds > up u

Re: [Rd] apply: new behaviour for factors in R-2.4.0

2006-09-28 Thread Christoph Buser
Dear Brian Thank you for your answer and the comment you included on the apply() help page. 1) You are correct. My data.frame is coerced into a matrix in apply() 2) I agree that the new version of unlist() is better and works correctly and that in array() (due to as.vector()) the factor "ans"

Re: [Rd] R CMD build when the package name is different from the directory name

2006-09-28 Thread Seth Falcon
Arne Henningsen <[EMAIL PROTECTED]> writes: > Hi, > > I was really happy when I saw that in R version 2.3.0 "R CMD check" works for > packages whose package name is different from the directory name in which it > is located (see http://cran.r-project.org/src/base/NEWS). > Now, I can have branch

Re: [Rd] R CMD build when the package name is different from the directory name

2006-09-28 Thread Arne Henningsen
Dear Gabor, Thank you for your message. On Thursday 28 September 2006 15:30, Gabor Grothendieck wrote: > Another possibility is to store your code in svn or other version > control system. Unfortunately, I can't see why this should make a difference for "R CMD build". Do I miss something? The e

Re: [Rd] S4 accessors

2006-09-28 Thread John Chambers
Maybe this was not as obvious or well-known as I assumed would be the case on this list. In an OOP system (I dislike the term but let's use it), the programming mechanism is to invoke a method on an object. Say method flag on object x: x$flag() (using "$" in R style instead of the usual "

Re: [Rd] Warning on backslash sequences (was sprintf behavior)

2006-09-28 Thread Gabor Grothendieck
One area where a problem might appear is if one is generating R code, e.g. paste("a <-", dQuote("xyz")) # wrong! since in UTF-8 dQuote (and sQuote) do not necessarily generate double quotes (and single quotes) so one winds up using double quotes within single quotes or else backslash-protecte

Re: [Rd] Warning on backslash sequences (was sprintf behavior)

2006-09-28 Thread Prof Brian Ripley
Thanks, Bill, that is helpful. I've been running a prototype across R itself and CRAN. It is clear that we do have lots of strings with escaped newlines (the escape is generated in the parser if there is an embedded newline) so they need to be an exception. On my first version 99 CRAN package

Re: [Rd] R CMD build when the package name is different from the directory name

2006-09-28 Thread Gabor Grothendieck
Another possibility is to store your code in svn or other version control system. On 9/28/06, Arne Henningsen <[EMAIL PROTECTED]> wrote: > Hi, > > I was really happy when I saw that in R version 2.3.0 "R CMD check" works for > packages whose package name is different from the directory name in whi

[Rd] unloadNamespace inside .Last.lib

2006-09-28 Thread Benjamin Tyner
In my package's zzz.R, I put .Last.lib <- function(libpath) { unloadNamespace("mypackage") } and I exported .Last.lib in NAMESPACE, with the intent that detaching the package would also cause the name space to be unloaded. However, the result of detach("package:mypackage") is then Error: e

[Rd] R CMD build when the package name is different from the directory name

2006-09-28 Thread Arne Henningsen
Hi, I was really happy when I saw that in R version 2.3.0 "R CMD check" works for packages whose package name is different from the directory name in which it is located (see http://cran.r-project.org/src/base/NEWS). Now, I can have branches of my packages in directories like "[...]/branches//