Dear R-devel,
Is there a reason that lapply(NULL, ...) returns the empty list, rather than
NULL? It seems intuitive to expect the latter, and rather counterintuitive that
lapply(list(), ... ) returns the same value as lapply(NULL, ...).
> lapply(list(), function(x) 1)
list()
> lapply(NULL, fun
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 take
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 u
;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-project.org
Subject: Re: [Rd
fails.
Now, by cat() being the inverse of shQuote() I mean printing the same literal
as it goes into shQuote, quotes included:
> cat(shQuote("a"), '\n')
"a"
whereas
> cat("a", '\n')
a ## no quotes
If cat() is not the inverse of shQuote() in
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
onday, 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 conroll
ct?
Thanks,
Vadim
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
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++) func
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, t
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 n
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 Ne
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 variab
From: [EMAIL PROTECTED] [EMAIL PROTECTED] 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
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 <- lis
15 matches
Mail list logo