[Rd] "deparse" with "nlines" argument produces empty elements (PR#13299)

2008-11-18 Thread kbarton
Full_Name: Kamil BartoƱ Version: 2.8.0 OS: windows xp Submission from: (NULL) (212.33.92.187) According to the "deparse" function documentation "nlines" is the *maximum* number of lines to produce. But, when "nlines" argument is supplied, it produces exactly nlines of result, and the result conta

Re: [Rd] assign("FALSE", TRUE)

2008-11-18 Thread Rolf Turner
On 18/11/2008, at 11:11 AM, Martin Maechler wrote: Yes. I'd propose that R-core look into how to make assignment to a reserved word an error. That's good news. Thanks. cheers, Rolf Turner #

Re: [Rd] checking for executable files ... WARNING

2008-11-18 Thread hadley wickham
On Tue, Nov 18, 2008 at 1:31 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Mon, 17 Nov 2008, hadley wickham wrote: > >> In R 2.8. I get the following warning when checking my package: >> >> * checking for executable files ... WARNING >> Found the following executable file(s): >> .git/objec

Re: [Rd] checking for executable files ... WARNING

2008-11-18 Thread Prof Brian Ripley
On Tue, 18 Nov 2008, hadley wickham wrote: On Tue, Nov 18, 2008 at 1:31 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: On Mon, 17 Nov 2008, hadley wickham wrote: In R 2.8. I get the following warning when checking my package: * checking for executable files ... WARNING Found the following

Re: [Rd] checking for executable files ... WARNING

2008-11-18 Thread hadley wickham
On Tue, Nov 18, 2008 at 7:00 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Tue, 18 Nov 2008, hadley wickham wrote: > >> On Tue, Nov 18, 2008 at 1:31 AM, Prof Brian Ripley >> <[EMAIL PROTECTED]> wrote: >>> >>> On Mon, 17 Nov 2008, hadley wickham wrote: >>> In R 2.8. I get the following

Re: [Rd] assign("FALSE", TRUE)

2008-11-18 Thread Martin Maechler
> "PD" == Peter Dalgaard <[EMAIL PROTECTED]> > on Tue, 18 Nov 2008 00:00:40 +0100 writes: PD> Martin Maechler wrote: >> But in spite of all that I agree that I'd have liked >> `FALSE` <- to signal an error about the fact >> that it is a reserved word. >> RT> T

Re: [Rd] assign("FALSE", TRUE)

2008-11-18 Thread Peter Dalgaard
Martin Maechler wrote: >> "PD" == Peter Dalgaard <[EMAIL PROTECTED]> >> on Tue, 18 Nov 2008 00:00:40 +0100 writes: > > PD> Martin Maechler wrote: > >> But in spite of all that I agree that I'd have liked > >> `FALSE` <- to signal an error about the fact > >> that it is

Re: [Rd] assign("FALSE", TRUE)

2008-11-18 Thread Prof Brian Ripley
On Tue, 18 Nov 2008, Peter Dalgaard wrote: Martin Maechler wrote: "PD" == Peter Dalgaard <[EMAIL PROTECTED]> on Tue, 18 Nov 2008 00:00:40 +0100 writes: PD> Martin Maechler wrote: >> But in spite of all that I agree that I'd have liked >> `FALSE` <- to signal an error about the

Re: [Rd] (PR#13299) "deparse" with "nlines" argument produces empty elements

2008-11-18 Thread Prof Brian Ripley
Although it does actually do what it is documented to do, producing the minimum necessary number of lines would be better, and I've altered R-patched to do so. Thank you for the report. Brian Ripley (who was in Bialowieza a couple of months ago). On Tue, 18 Nov 2008, [EMAIL PROTECTED] wrote:

Re: [Rd] Fwd: Fwd: SWIG with R and C++ STL

2008-11-18 Thread charlie
Thanks guys for all your kind heartedness. Yeah, I got messed up with a lot of things in my previous program, like missing the definition of one function and etc. I finally discovered a good example on: http://www.opensource.apple.com/darwinsource/Current/swig-4/swig/Examples/java/funcptr/index.ht

Re: [Rd] Fwd: Fwd: SWIG with R and C++ STL

2008-11-18 Thread Whit Armstrong
no all compilers support the export keyword. just put the template in a .h or .hpp file and include it in your .cpp file. that should be enough. -Whit On Tue, Nov 18, 2008 at 2:50 PM, charlie <[EMAIL PROTECTED]> wrote: > Thanks guys for all your kind heartedness. > > Yeah, I got messed up with

[Rd] anyone familiar with this error?

2008-11-18 Thread Whit Armstrong
[EMAIL PROTECTED] R.packages]$ sudo R CMD INSTALL portfolio.construction * Installing to library '/usr/local/lib64/R/library' * Installing *source* package 'portfolio.construction' ... ** R ** preparing package for lazy loading Loading required package: fts Loading required package: quadprog Loadi

[Rd] R license: GPL v2 or v3?

2008-11-18 Thread Gabriel Gellner
For a project I am porting some of R's source code, and I want to get the license for my project correct, but the top level COPYING file for R's source states GPL v2, but when using: > license() (which also states GPL version 2) points me towards: > RShowDoc('COPYING') which states GPL

Re: [Rd] anyone familiar with this error?

2008-11-18 Thread Gabor Grothendieck
Don't really know but you could see if the info in Avoiding R Bugs section on the http:/r-proto.googlecode.com page applies, particularly the first point on Lazy Loading. On Tue, Nov 18, 2008 at 5:07 PM, Whit Armstrong <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] R.packages]$ sudo R CMD INSTALL

Re: [Rd] anyone familiar with this error?

2008-11-18 Thread Gabor Grothendieck
There was a slash missing. It should be http://r-proto.googlecode.com On Tue, Nov 18, 2008 at 6:31 PM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Don't really know but you could see if the info in Avoiding R Bugs > section on the http:/r-proto.googlecode.com page applies, particularly > the

[Rd] more efficient small subsets from moderate vectors?

2008-11-18 Thread Martin Morgan
This creates a named vector of length nx, then repeatedly draws a single sample from it. lkup <- function(nx, m=1L) { tbl <- seq_len(nx) names(tbl) <- as.character(tbl) v <- sample(names(tbl), m, replace=TRUE) system.time(for(k in v) tbl[k], gcFirst=TRUE) } There is an abrupt

Re: [Rd] anyone familiar with this error?

2008-11-18 Thread Prof Brian Ripley
On Tue, 18 Nov 2008, Whit Armstrong wrote: [EMAIL PROTECTED] R.packages]$ sudo R CMD INSTALL portfolio.construction * Installing to library '/usr/local/lib64/R/library' * Installing *source* package 'portfolio.construction' ... ** R ** preparing package for lazy loading Loading required package

Re: [Rd] R license: GPL v2 or v3?

2008-11-18 Thread Prof Brian Ripley
On Tue, 18 Nov 2008, Gabriel Gellner wrote: For a project I am porting some of R's source code, and I want to get the license for my project correct, but the top level COPYING file for R's source states GPL v2, but when using: > license() (which also states GPL version 2) points me towards:

Re: [Rd] more efficient small subsets from moderate vectors?

2008-11-18 Thread Prof Brian Ripley
Note that you are talking about very small times here. Yes, it probably switches early for ns=1, but is that a common usage? Do people really do lots of single lookups from long vectors -- if so they deserve what they get, and it would be better to use a hashed environment. (Indeed a strategy co