Re: [Rd] Warnings about unrecognized escapes in Rd

2006-10-18 Thread Prof Brian Ripley
On Wed, 18 Oct 2006, Seth Falcon wrote: > Seth Falcon <[EMAIL PROTECTED]> writes: > >> Peter Dalgaard <[EMAIL PROTECTED]> writes: >>> Er, do you have a minimal example showing the behaviour? It's not >>> quite clear whether you have this happening everywhere or only in >>> example sections, formul

Re: [Rd] Error: subscript out of bounds (PR#9305)

2006-10-18 Thread ripley
Why do you consider this to be a bug: you are using matrix indexing, and there is no element c(1,3) of x? This form of indexing is covered in 'An Introduction to R'. On Thu, 19 Oct 2006, [EMAIL PROTECTED] wrote: > Full_Name: Steven King > Version: 1.16 There is no such version of R. > OS: OS

Re: [Rd] Warnings about unrecognized escapes in Rd

2006-10-18 Thread Seth Falcon
Seth Falcon <[EMAIL PROTECTED]> writes: > Peter Dalgaard <[EMAIL PROTECTED]> writes: >> Er, do you have a minimal example showing the behaviour? It's not >> quite clear whether you have this happening everywhere or only in >> example sections, formulas or...? > > Oups. The example I was looking a

[Rd] http://cran.r-project.org/contrib/extra/

2006-10-18 Thread Gabor Grothendieck
I can't seem to find any way to get from the main R page to http://cran.r-project.org/contrib/extra/ via any series of links. Does such a path exist? Where is it? __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Problems building package under Windows (PR#9303)

2006-10-18 Thread Duncan Murdoch
On 10/18/2006 1:11 PM, [EMAIL PROTECTED] wrote: > This is a multi-part message in MIME format. > --090108060506030400070300 > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > > Dear R people > > I want to contribute a new package (various

Re: [Rd] Error: subscript out of bounds (PR#9305)

2006-10-18 Thread Gabor Grothendieck
See ?"[" and note in particular "A third form of indexing is via a numeric matrix with the one column for each dimension: each row of the index matrix then selects a single element of the array, and the result is a vector." Thus the result in this case should be a vector with element 1,3 as its f

[Rd] Error: subscript out of bounds (PR#9305)

2006-10-18 Thread salking
Full_Name: Steven King Version: 1.16 OS: OSX vesion 10.4.8 Submission from: (NULL) (71.126.161.149) Setting a matrix is a function - the failure occurs only on 2 X 2 matrices. x<-matrix(1:4,nrow=2) > x [,1] [,2] [1,]13 [2,]24 > x[x]<-2 Error: subscript out of bounds __

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Duncan Murdoch
On 10/18/2006 1:17 PM, Roger D. Peng wrote: > I've encountered a (I think) related problem when using promises to load > relatively large datasets. For example something like > > delayedAssign("x", getBigDataset()) > > runs into the same problem if you hit Ctrl-C while 'x' is being evaluated fo

Re: [Rd] Warnings about unrecognized escapes in Rd

2006-10-18 Thread Seth Falcon
Peter Dalgaard <[EMAIL PROTECTED]> writes: > Er, do you have a minimal example showing the behaviour? It's not > quite clear whether you have this happening everywhere or only in > example sections, formulas or...? Oups. The example I was looking at has \_ in a number of places in the Rd files so

Re: [Rd] Warnings about unrecognized escapes in Rd

2006-10-18 Thread Peter Dalgaard
Seth Falcon <[EMAIL PROTECTED]> writes: > Hi, > > The warning that was recently added to R-devel about unrecognized > escapes has been very helpful in identifying a number of incorrectly > specified regular expressions. > > We are, however, seeing warning messages for Rd files that contiain > '\

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Seth Falcon
"Roger D. Peng" <[EMAIL PROTECTED]> writes: > I've encountered a (I think) related problem when using promises to load > relatively large datasets. For example something like > > delayedAssign("x", getBigDataset()) > > runs into the same problem if you hit Ctrl-C while 'x' is being evaluated for

Re: [Rd] Caching bug with showMethods?

2006-10-18 Thread Seth Falcon
John Chambers <[EMAIL PROTECTED]> writes: > If showMethods() were extended in this way but consistent with its > behavior now, you would potentially get a mess (and do a lot of > computation). Any method with "ANY" in any element of its signature > qualifies (in particular, all default methods).

[Rd] Warnings about unrecognized escapes in Rd

2006-10-18 Thread Seth Falcon
Hi, The warning that was recently added to R-devel about unrecognized escapes has been very helpful in identifying a number of incorrectly specified regular expressions. We are, however, seeing warning messages for Rd files that contiain '\_' and I think that _is_ a recognized escape. Can the ch

Re: [Rd] Problems building package under Windows (PR#9303)

2006-10-18 Thread Kasper Daniel Hansen
(I have removed a CC to R-bugs) It seems like you are using windows. If you take the time to read the R-admin manual, it tells you how to set up your system for building packages under Windows (R-extensions tells you how to make packages, R-admin tells you how to set up your system). This wi

Re: [Rd] Caching bug with showMethods?

2006-10-18 Thread John Chambers
I think I understand what you're looking for, but it's nontrivial and should really be another function, like findAllMethods(class, functions) If showMethods() were extended in this way but consistent with its behavior now, you would potentially get a mess (and do a lot of computation). Any

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Luke Tierney
On Wed, 18 Oct 2006, Simon Urbanek wrote: > > On Oct 18, 2006, at 1:17 PM, Roger D. Peng wrote: > >> I've encountered a (I think) related problem when using promises to >> load relatively large datasets. For example something like >> >> delayedAssign("x", getBigDataset()) >> >> runs into the same

Re: [Rd] Line numbers above 99 not readable in editor (PR#9304)

2006-10-18 Thread Simon Urbanek
On Oct 18, 2006, at 2:00 PM, [EMAIL PROTECTED] wrote: > Full_Name: Hendrik Fuß > Version: 2.4.0 > OS: Mac OS 10.4.8 > Submission from: (NULL) (201.27.210.144) > > > On Mac OS, in the file editor, line numbers on the left-hand side > will be > truncated if greater than 99. You may want to incre

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Simon Urbanek
On Oct 18, 2006, at 1:17 PM, Roger D. Peng wrote: > I've encountered a (I think) related problem when using promises to > load relatively large datasets. For example something like > > delayedAssign("x", getBigDataset()) > > runs into the same problem if you hit Ctrl-C while 'x' is being > e

[Rd] Line numbers above 99 not readable in editor (PR#9304)

2006-10-18 Thread fuss-h
Full_Name: Hendrik Fuß Version: 2.4.0 OS: Mac OS 10.4.8 Submission from: (NULL) (201.27.210.144) On Mac OS, in the file editor, line numbers on the left-hand side will be truncated if greater than 99. They show up as e.g.: 12 12 12 12 12 12 12 12 12 12 13 13 13 13 ... __

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Roger D. Peng
I've encountered a (I think) related problem when using promises to load relatively large datasets. For example something like delayedAssign("x", getBigDataset()) runs into the same problem if you hit Ctrl-C while 'x' is being evaluated for the first time. Afterwards, there's no way to retrie

[Rd] Problems building package under Windows (PR#9303)

2006-10-18 Thread agner
This is a multi-part message in MIME format. --090108060506030400070300 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Dear R people I want to contribute a new package (various noncentral hypergeometric distribution functions) using C++, b

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Robert Gentleman
Simon Urbanek wrote: > Seth, > > thanks for the suggestions. > > On Oct 18, 2006, at 11:23 AM, Seth Falcon wrote: > >> Simon Urbanek <[EMAIL PROTECTED]> writes: >>> thanks, but this is not what I want (the symbols in the environment >>> are invisible outside) and it has nothing to do with the

Re: [Rd] latin1,utf-8...encoding and data

2006-10-18 Thread Prof Brian Ripley
Only ASCII letters are portable: those accented characters do not even exist in many of the encodings used for R, e.g. Russian and Japanese on Windows machines. There is no way to associate an encoding with a character string in R. We considered it, but it would have had severe back-compatibi

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Luke Tierney
Active bindings are another option (?makeActiveBinding). It might be worth revisiting how promises are evaluated to see if at elast a more sensible error message can be achieved, but making sure any changes do not affect performance will be tricky. Best, luke On Wed, 18 Oct 2006, Duncan Temple

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Simon Urbanek
Seth, thanks for the suggestions. On Oct 18, 2006, at 11:23 AM, Seth Falcon wrote: > Simon Urbanek <[EMAIL PROTECTED]> writes: >> thanks, but this is not what I want (the symbols in the environment >> are invisible outside) and it has nothing to do with the question I >> posed: as I was saying i

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Duncan Temple Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Simon. One approach is RObjectTables. This provides a way to customize how variables are accessed/assigned in an environment and so allows an operation to do something to compute the value of a variable while still allowing it to be used as a var

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Seth Falcon
Simon Urbanek <[EMAIL PROTECTED]> writes: > thanks, but this is not what I want (the symbols in the environment > are invisible outside) and it has nothing to do with the question I > posed: as I was saying in the previous e-mail the point is to have > exported variables in a namespace, but t

[Rd] latin1,utf-8...encoding and data

2006-10-18 Thread Stéphane Dray
Hello, I have some questions concerning encoding and package distribution. We develop the ade4 package. For some data sets included in the package, there are accentued character (e.g. é,è...). The data sets have been saved using latin1 encoding, but some of us use utf-8 and can not see some dat

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Simon Urbanek
Martin, On Oct 17, 2006, at 11:43 PM, Martin Morgan wrote: > I believe the technique is to create an environment in the > namespace, and then to access that through functions: > thanks, but this is not what I want (the symbols in the environment are invisible outside) and it has nothing to d

Re: [Rd] Caching bug with showMethods?

2006-10-18 Thread Seth Falcon
John Chambers <[EMAIL PROTECTED]> writes: > No, not a bug. > > Inherited methods are never cached until they are needed, for rather > obvious efficiency reasons. See ?showMethods, under argument > inherited= ok, I missed the doc, which is quite clear about showMethods not doing what I wanted... >

Re: [Rd] Caching bug with showMethods?

2006-10-18 Thread John Chambers
No, not a bug. Inherited methods are never cached until they are needed, for rather obvious efficiency reasons. See ?showMethods, under argument inherited= If what you were trying to do was find out what method would be called for class "B" without calling it, use selectMethod(). Seth Falcon w

Re: [Rd] Automatic C wrapper generation

2006-10-18 Thread Duncan Temple Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In addition to the SWIG support for R, I am also in the process of finishing off another approach which uses the compiler directly (rather than an intermediate input file) and can read the body of the routines in order to analyze the expressions there

[Rd] survdiff Mac binary in Survival pckg (PR#9302)

2006-10-18 Thread ulrich . beutner
Full_Name: Ulrich Beutner Version: 2.4.0 OS: MacOS 10.4 (PPC G4) Submission from: (NULL) (193.134.32.99) It appears that there is bug in the Macintosh binary of survdiff (part of survival library) Following the output of the example for survdiff under Windows XP and Macintosh. While under WinXP c

Re: [Rd] Automatic C wrapper generation

2006-10-18 Thread Dirk Eddelbuettel
On 18 October 2006 at 11:15, Benjamin Georgi wrote: | I'm looking into creating R bindings for a medium sized C library. I | have read up on how to access simple C functions using the .C and .Call | methods and what I'm looking for now is a way to automate the generation | of the necessary glue

[Rd] Automatic C wrapper generation

2006-10-18 Thread Benjamin Georgi
Hi, I'm looking into creating R bindings for a medium sized C library. I have read up on how to access simple C functions using the .C and .Call methods and what I'm looking for now is a way to automate the generation of the necessary glue code. Ideal would be a SWIG-like package that does mos

Re: [Rd] Error condition in evaluating a promise

2006-10-18 Thread Prof Brian Ripley
As is clear from the message you got, promises were originally implemented to handle lazy evaluation of closure arguments, as essentially transient objects. There are several aspects of their implementation that are tailored to that use, one being that they can only be evaluated once (as a loo