Skip to content
Prev 67496 / 398506 Next

R as programming language: references?

As far as predicting the number of copies which R will create during the
execution of some code, that's almost completely implementation dependent;
no language specification (syntax or semantics) would help. You can
investigate this empirically (try several approaches and look at memory
usage) and/or look at the relevant source (packages, the interface code for
.C/.Call/.Fortran etc, the array manipulation routines,...). I should add
that this code is surprisingly clear and modular, so it's much easier to
read than you might think.

Reid Huntsinger


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Jan T. Kim
Sent: Tuesday, April 12, 2005 12:54 PM
To: r-help at stat.math.ethz.ch
Subject: Re: [R] R as programming language: references?
On Tue, Apr 12, 2005 at 02:01:04PM +0200, A.J. Rossini wrote:
form
tools
I don't know what Federico Calboli has in mind, but as for myself, upon
starting with R, I've been looking for an R language reference in the
style of the Python reference (http://docs.python.org/ref/ref.html).
The specification of the grammar and the associated semantics of a
language gives me the kind of in-depth conceptual understanding that I
like to have, and I find this more difficult to accrue for R than for
other languages. For example, I'm still not certain whether I'm able to
correctly predict how many copies of an object are created during the
execution of some code, and consequently, I'm not really confident that
my code is reasonably optimal.

I'd appreciate pointers to any (more or less hidden) gems I may have
overlooked, of course.

Best regards, Jan