Re: [Rd] Writing character vectors with embedded nulls to a connection

2006-03-30 Thread Prof Brian Ripley
I think you should be using a raw type to hold such data in R. It is not intentional that readChar handles embedded nuls (and in fact it might not in an MBCS). As ?serialize says For 'serialize', 'NULL' unless 'connection=NULL', when the result is stored in the first element of a c

Re: [Rd] [R] R garbage collection

2006-03-30 Thread Prof Brian Ripley
On Thu, 30 Mar 2006, Jeff Henrikson wrote: > r-help, [Moved to R-devel.] > The R manual lists two types of memory: transient and user-controlled. > If I have transient blocks reachable from the globals only by traversal > through user-controlled blocks, will they be correctly preserved? I don't

[Rd] Fortran and C entry point problem.

2006-03-30 Thread Steve Su
Dear All, I have seen a number of e mails on this topic but I have not seen a general solution to date. I have Fortran and C source codes and they have been compiled successfully using: R CMD build mypackage And R CMD install mypackage Without error messages. I then open R

Re: [Rd] custom strip in lattice ignoring plotmath expressions for all (PR#8734)

2006-03-30 Thread btyner
Sorry, so used to it being bundled that I didn't realize lattice was a "contributed package". Ben Deepayan Sarkar wrote: > > >1. Bugs in packages should be reported to the maintainer, not R-bugs. > >2. This already works as it should in R 2.3.0 alpha > >-Deepayan > >

Re: [Rd] custom strip in lattice ignoring plotmath expressions for all but style = 1 (PR#8733)

2006-03-30 Thread Benjamin Tyner
Sorry, so used to it being bundled that I didn't realize lattice was a "contributed package". Ben Deepayan Sarkar wrote: > > >1. Bugs in packages should be reported to the maintainer, not R-bugs. > >2. This already works as it should in R 2.3.0 alpha > >-Deepayan > >

[Rd] Writing character vectors with embedded nulls to a connection

2006-03-30 Thread Jeffrey Horner
Is this possible? I've tried both writeChar() and writeBin() to no avail. My goal is to serialize(ascii=FALSE) an object to a connection but determine the size of the serialized object before hand: sobject <- serialize(object,NULL,ascii=FALSE) len <- nchar(sobject) # # run some code here to noti

Re: [Rd] custom strip in lattice ignoring plotmath expressions for all but style = 1 (PR#8733)

2006-03-30 Thread Deepayan Sarkar
Trying again... On Thursday 30 March 2006 15:19, [EMAIL PROTECTED] wrote: > Full_Name: Ben Tyner > Version: 2.2.0 > OS: i686-pc-linux-gnu > Submission from: (NULL) (128.210.141.240) > > > My appologies if this has already been fixed, but I didn't see it in the > tracking system yet so I thought

Re: [Rd] custom strip in lattice ignoring plotmath expressions for all but style = 1 (PR#8733)

2006-03-30 Thread deepayan . sarkar
T24gMy8zMC8wNiwgYnR5bmVyQHN0YXQucHVyZHVlLmVkdSA8YnR5bmVyQHN0YXQucHVyZHVlLmVk dT4gd3JvdGU6Cj4gRnVsbF9OYW1lOiBCZW4gVHluZXIKPiBWZXJzaW9uOiAyLjIuMAo+IE9TOiBp Njg2LXBjLWxpbnV4LWdudQo+IFN1Ym1pc3Npb24gZnJvbTogKE5VTEwpICgxMjguMjEwLjE0MS4y NDApCj4KPgo+IE15IGFwcG9sb2dpZXMgaWYgdGhpcyBoYXMgYWxyZWFkeSBiZWVuIGZp

[Rd] custom strip in lattice ignoring plotmath expressions for all but style = 1 (PR#8733)

2006-03-30 Thread btyner
Full_Name: Ben Tyner Version: 2.2.0 OS: i686-pc-linux-gnu Submission from: (NULL) (128.210.141.240) My appologies if this has already been fixed, but I didn't see it in the tracking system yet so I thought I'd report it. Demonstration: xyplot(Petal.Length ~ Petal.Width | Species, iris, st

Re: [Rd] compress defaults for save() and save.image()

2006-03-30 Thread Liaw, Andy
Ditto for me, with the following exceptions: - I always use save(..., compress=TRUE), without exception. - The only time I'd use save.image() is when I need to break a remote connection on short notice. - I have not used options() to set the default simply because I have not figured out how exactl

Re: [Rd] compress defaults for save() and save.image()

2006-03-30 Thread Roger D. Peng
Prof Brian Ripley wrote: > I have changed the default in save() to compress = !ascii. This seems > quite safe, as almost always save() is called explicitly and people will > appreciate that it might take a little time to save large objects (and > depending on your system, compression could eve

[Rd] request to add "..." to cat(ngettext in "warnings" function

2006-03-30 Thread Leif Kirschenbaum
Madams & Sirs, I am working on porting some R code to one of our servers to run under web or crontab direction. With that in mind I have been working on directing informative, warning, and error messages to outputs as I require. I would like to suggest a change to the "warnings" function; th

[Rd] compress defaults for save() and save.image()

2006-03-30 Thread Prof Brian Ripley
I have changed the default in save() to compress = !ascii. This seems quite safe, as almost always save() is called explicitly and people will appreciate that it might take a little time to save large objects (and depending on your system, compression could even be faster). Should we also chang

Re: [Rd] R and sun gridengine

2006-03-30 Thread Michael Dondrup
Michael Dondrup wrote: > Kim Carter wrote: > >>Hi >> >>I am looking for assistance with setting up R under Sun grid engine 6 >>(6.0-update7). I would like to set up transparent interactive access >>to R using either a qlogin or qrsh solution. While it basically works >>using either method, I reach

[Rd] Documentation of aic function in family objects

2006-03-30 Thread Lukas Meier
Dear R-developers, Wouldn't it make sense to document the aic function in family objects? I'm currently writing an R-program which makes use of the log-likelihood function of e.g. a logistic regression model or a poisson regression model. As I have observed, the aic function in a family object c

Re: [Rd] [R] rownames, colnames, and date and time

2006-03-30 Thread Prof Brian Ripley
On Thu, 30 Mar 2006, Patrick Burns wrote: > I haven't been following all of this thread, but > it reminds me of a bug that was in S-PLUS not > too long ago where dimnames could sometimes > be numeric. This caused some problems that > were very hard to track down because there were > no visual clu

Re: [Rd] function min does not return correct result if .Machine$integer.max (PR#8732)

2006-03-30 Thread ripley
The code has s = INT_MAX; for (i = 0; i < n; i++) { if (x[i] != NA_INTEGER) { if (s > x[i]) { s = x[i]; if(!updated) updated = 1; } } else if (!narm) { if(!updated) updated = 1; *value

Re: [Rd] function min does not return correct result if .Machine$integer.max is involved (PR#8731)

2006-03-30 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > Full_Name: Martin Schlather > Version: 2.2.0 and alpha 2.3.0 (06/3/29) > OS: Linux (x86_64 and Intel) > Submission from: (NULL) (139.11.183.106) > > > > min(.Machine$integer.max, 10^20) > [1] 1e+20 > > > min(as.integer(.Machine$integer.max), 10^20) > [1] 1e+20 > >

[Rd] function min does not return correct result if .Machine$integer.max is involved (PR#8731)

2006-03-30 Thread schlather
Full_Name: Martin Schlather Version: 2.2.0 and alpha 2.3.0 (06/3/29) OS: Linux (x86_64 and Intel) Submission from: (NULL) (139.11.183.106) > min(.Machine$integer.max, 10^20) [1] 1e+20 > min(as.integer(.Machine$integer.max), 10^20) [1] 1e+20 but > min(.Machine$integer.max + 0, 10^20) [1] 214748

[Rd] symbols plot

2006-03-30 Thread Joerg van den Hoff
before getting scolded for submitting a (non-)bug report: when using the 'symbols' function for plotting boxplot data (i.e. using 'boxplots' symbols), I noted that the x/y-position of the symbols is associated with the center of the box. while this is obviously natural for a usual plotting symbol

[Rd] ansari.test one-tailed (PR#8730)

2006-03-30 Thread gael . millot
Full_Name: Gael Millot Version: 2.2.0. OS: XP Submission from: (NULL) (195.220.102.20) Hello. I sent an Email in r-help without answer for the moment. I am wondering if it could have a mistake in the code of the ansari.test function. For me, it seems that the function do not recover the p value

Re: [Rd] [R] rownames, colnames, and date and time

2006-03-30 Thread Patrick Burns
I haven't been following all of this thread, but it reminds me of a bug that was in S-PLUS not too long ago where dimnames could sometimes be numeric. This caused some problems that were very hard to track down because there were no visual clues of what was really wrong. I've been pleased not to

Re: [Rd] header containing 8713 (PR#8713)

2006-03-30 Thread ripley
I believe this was intended to be a followup to PR#8713 but has opened a new report, so I am replying to re-file it in the correct place. You can read the source code to find out what happens (as anyone else looking into this would need to). I currently have Argument \code{inches} controls