Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread seth
On 2/20/10 7:50 AM, Peter Dalgaard wrote: > You don't want to understand, believe me! ;-) > > It's a bug, probably not the very worst kind, but accessing memory that > isn't yours is potentially harmful (but writing to it is considerably > worse). > > Looks like the issue only concerns the right

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread Seth Falcon
On 2/20/10 7:50 AM, Peter Dalgaard wrote: > You don't want to understand, believe me! ;-) > > It's a bug, probably not the very worst kind, but accessing memory that > isn't yours is potentially harmful (but writing to it is considerably > worse). > > Looks like the issue only concerns the right

Re: [Rd] R logo as SVG ?

2010-02-20 Thread Jens Elkner
On Sat, Feb 20, 2010 at 08:00:13PM +0100, Peter Dalgaard wrote: > G. Jay Kerns wrote: > >On Sat, Feb 20, 2010 at 1:18 PM, Peter Dalgaard > > wrote: > >>Jens Elkner wrote: > >>>Hi, > >>> > >>>does anybody have the R logo in a vector format preferable SVG? > >>>Need it for Freedesktop (GNOME desktop)

Re: [Rd] R logo as SVG ?

2010-02-20 Thread Peter Dalgaard
G. Jay Kerns wrote: On Sat, Feb 20, 2010 at 1:18 PM, Peter Dalgaard wrote: Jens Elkner wrote: Hi, does anybody have the R logo in a vector format preferable SVG? Need it for Freedesktop (GNOME desktop) integration of Rcmdr ... Thanx, jel. Not really. I played around with the tracer in inksc

Re: [Rd] R logo as SVG ?

2010-02-20 Thread G. Jay Kerns
On Sat, Feb 20, 2010 at 1:18 PM, Peter Dalgaard wrote: > Jens Elkner wrote: >> >> Hi, >> >> does anybody have the R logo in a vector format preferable SVG? >> Need it for Freedesktop (GNOME desktop) integration of Rcmdr ... >> >> Thanx, >> jel. > > Not really. I played around with the tracer in in

Re: [Rd] R logo as SVG ?

2010-02-20 Thread Peter Dalgaard
Jens Elkner wrote: Hi, does anybody have the R logo in a vector format preferable SVG? Need it for Freedesktop (GNOME desktop) integration of Rcmdr ... Thanx, jel. Not really. I played around with the tracer in inkscape at some point, but it didn't come out quite satisfactory. It's a bit of

[Rd] R logo as SVG ?

2010-02-20 Thread Jens Elkner
Hi, does anybody have the R logo in a vector format preferable SVG? Need it for Freedesktop (GNOME desktop) integration of Rcmdr ... Thanx, jel. -- Otto-von-Guericke University http://www.cs.uni-magdeburg.de/ Department of Computer Science Geb. 29 R 027, Universitaetsplatz 2 39106 Magdebur

[Rd] R-forge down

2010-02-20 Thread Henrik Bengtsson
FYI/to the maintainers of r-forge: R-forge seems to be down: 1. http://r-forge.r-project.org/ gives minimal page "R-Forge Could Not Connect to Database:". 2. svn+ssh://@svn.r-forge.r-project.org/ - svn requests does not work. 3. ping svn.r-forge.r-project.org does indeed respond. /Henrik __

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread Peter Dalgaard
g.russ...@eos-solutions.com wrote: Full_Name: George Russell Version: 2.10.0, 2.11.0 (2009-12-13 r50716) OS: Windows Submission from: (NULL) (217.111.3.131) R trace: -- cut here -- v <- integer(0) v[[1]] <- v v [1] 20522144 v <- numeric(0) v[[1]] <- v v [1] 4.254131e-314 sessionInfo() R ve

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread Henrik Bengtsson
Confirmed behavior on R version 2.10.1 Patched (2010-01-12 r50990) and R version 2.11.0 Under development (unstable) (2010-02-14 r51138) [Windows Vista]: INTEGERS: > v <- integer(5) > v [1] 0 0 0 0 0 > v[[2]] <- integer(0) > v [1] 0 2892960 0 0 0 > v[[4]] <- 1L[c()] > v [1]

[Rd] read.csv('/dev/stdin') fails (PR#14218)

2010-02-20 Thread egoldlust
Full_Name: Eric Goldlust Version: 2.10.1 (2009-12-14) x86_64-unknown-linux-gnu OS: Linux 2.6.9-67.0.1.ELsmp x86_64 Submission from: (NULL) (64.22.160.1) After upgrading to from 2.9.1 to 2.10.1, I get unexpected results when calling read.csv('/dev/stdin'). These problems go away when I call read

[Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread g . russell
Full_Name: George Russell Version: 2.10.0, 2.11.0 (2009-12-13 r50716) OS: Windows Submission from: (NULL) (217.111.3.131) R trace: -- cut here -- > v <- integer(0) > v[[1]] <- v > v [1] 20522144 > v <- numeric(0) > v[[1]] <- v > v [1] 4.254131e-314 > sessionInfo() R version 2.10.0 (2009-10-26) i

Re: [Rd] Problem with ?Syntax

2010-02-20 Thread Gabor Grothendieck
I wasn't claiming there was an ambiguity but it does not perform according to the operator precedence documented in ?Syntax . If it performed as documented it would give an error. On Sat, Feb 20, 2010 at 6:57 AM, Barry Rowlingson wrote: > On Sat, Feb 20, 2010 at 9:52 AM, Gabor Grothendieck > wr

Re: [Rd] Problem with ?Syntax

2010-02-20 Thread Barry Rowlingson
On Sat, Feb 20, 2010 at 9:52 AM, Gabor Grothendieck wrote: > In ?Syntax [ is given as higher priority than $ but BOD$demand[3] > seems to be the same as (BOD$demand)[3] contrary to [ being higher > priority. > >> BOD$demand[3] > [1] 19 >> (BOD$demand)[3] > [1] 19 > > What is the rule being used he

[Rd] Problem with ?Syntax

2010-02-20 Thread Gabor Grothendieck
In ?Syntax [ is given as higher priority than $ but BOD$demand[3] seems to be the same as (BOD$demand)[3] contrary to [ being higher priority. > BOD$demand[3] [1] 19 > (BOD$demand)[3] [1] 19 What is the rule being used here? __ R-devel@r-project.org ma

Re: [Rd] how to create a SEXP which could be accessed in embedded R

2010-02-20 Thread Romain Francois
On 02/20/2010 05:58 AM, yeahzx wrote: Hi all, I am not familiar with writing R extensions. In a C program, I want to create a SEXP and access it in embedded R. How to let the embedded engine know there's a new vector? For example, after creating a SEXP, parsing 'ls()' in embedded R and then

Re: [Rd] sample on data.frame

2010-02-20 Thread Sean O'Riordain
Good morning Stavos, I currently use the following definition in my own environment. sample.df <- function (df, n = 3) { df[sample(nrow(df), min(nrow(df), n)), ] } I also added in the possibility of returning n sequential rows which I used when examining address files... but I haven't used i