[Rd] Rscript temp file

2008-02-15 Thread Vadim Organovich
Hi, It seems that Rscript creates a temporary file to store the commands passed with the -e option, under normal circumstances the temp file gets deleted at some point. Here is an example of a call I use: q:/R/R-2.6.1/bin/Rscript.exe -e .libPaths(\q:/R/vogranovich/library\); params -

[Rd] crash in library(gbm) was: Rscript temp file

2008-02-15 Thread Vadim Organovich
] On Behalf Of Vadim Organovich [EMAIL PROTECTED] Sent: Friday, February 15, 2008 2:29 PM To: r-devel@r-project.org Subject: [Rd] Rscript temp file Hi, It seems that Rscript creates a temporary file to store the commands passed with the -e option, under normal circumstances the temp file gets

[Rd] forcing gc() to do its work

2008-02-16 Thread Vadim Organovich
Hi, At some points of my computations I want gc() to try really hard and collect as many objects as possible even though the triggering limits are not hit. Will it help if I temporarily set the limits to some small values, call gc() and then reset them back to their original values? What

[Rd] how to write dput-able objects

2008-02-25 Thread Vadim Organovich
Hi, One way of doing object-oriented programming in R is to use function environment to hold object's data, see for example @Article{Rnews:Chambers+Lang:2001a, author = {John M. Chambers and Duncan Temple Lang}, title= {Object-Oriented Programming in {R}}, journal = {R

Re: [Rd] how to write dput-able objects

2008-02-25 Thread Vadim Organovich
From: Gabor Grothendieck [EMAIL PROTECTED] Sent: Monday, February 25, 2008 12:16 PM To: Vadim Organovich Cc: r-devel@r-project.org Subject: Re: [Rd] how to write dput-able objects You might want to look at the proto package. proto objects won't immediately dput either but it would

[Rd] error loading library

2008-02-26 Thread Vadim Organovich
Hi, I am debugging intermittent crashes of R that seem to happen when multiple R sessions nearly summaltaneously load same dll-based library. I have R and my libraries installed on a network drive (everything is Windows). The drive is visible from a farm of servers. I have an R script, foo.R,

[Rd] clean-up actions after non-local exits

2008-04-14 Thread Vadim Organovich
Dear R-devel, Some time ago I started a thread that boiled down to clean-up actions after non-local exits in R, see below. I wonder if there has been any progress on this? R-ext 2.6.1 doesn't say much on the subject. How, for example, do people deal with a situation where their C (C++)

Re: [Rd] clean-up actions after non-local exits

2008-04-14 Thread Vadim Organovich
From: Duncan Murdoch [EMAIL PROTECTED] Sent: Monday, April 14, 2008 3:53 PM To: Vadim Organovich Cc: r-devel@r-project.org Subject: Re: [Rd] clean-up actions after non-local exits On 14/04/2008 4:33 PM, Vadim Organovich wrote: Dear R-devel, Some time ago I started a thread that boiled down

Re: [Rd] clean-up actions after non-local exits

2008-04-15 Thread Vadim Organovich
, April 14, 2008 6:57 PM To: Vadim Organovich Cc: r-devel@r-project.org Subject: Re: [Rd] clean-up actions after non-local exits On Mon, 14 Apr 2008, Vadim Organovich wrote: This is good, thanks! I'd like to be able to make sure that the resource is released in conrolled fasion rather than

[Rd] C++ complains abouct Rprintf signature

2008-04-16 Thread Vadim Organovich
Dear R-devel, My g++ complains about the first argument to Rprintf being non-const char *. For example when compiling the line Rprintf(hello world\n); the following warning is emitted: warning: deprecated conversion from string constant to 'char*' Is there a reason for the non-const? It is

Re: [Rd] [R] shQuote and cat

2008-07-23 Thread Vadim Organovich
() is not the inverse of shQuote() in the above sense, what is? Thanks, Vadim From: Duncan Murdoch [EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 1:10 PM To: Vadim Organovich Cc: [EMAIL PROTECTED] Subject: Re: [R] shQuote and cat On 7/23/2008 12:20 PM, Vadim Organovich wrote

Re: [Rd] [R] shQuote and cat

2008-07-23 Thread Vadim Organovich
\\a\\ Whichever way you do it it is not right. Again I think cat('echo \a\') should be printing *echo \a\* (asterics are not a part of the output) From: Duncan Murdoch [EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 2:38 PM To: Vadim Organovich Cc: r-devel@r

[Rd] names of return value of median

2008-08-20 Thread Vadim Organovich
Dear R-devel, The median() function assigns a name, NA, to its return value if the return value is NA and the input vector has names, otherwise the names attribute is NULL. This looks strange and inconsistent with the behavior of mean(). This inconsistency becomes a problem when median() is

[Rd] row.names in data.frame with row.names NULL

2008-08-20 Thread Vadim Organovich
Dear R-devel, It appears that data.frame ignores row.names=NULL argument if it can guess the names from the first column. This behavior seems to contradict what the help page says, see the last sentence: If row names are not supplied in the call to 'data.frame', the row names are