From alireza.s.mahani at gmail.com  Fri Jul 22 15:26:31 2011
From: alireza.s.mahani at gmail.com (Alireza Mahani)
Date: Fri, 22 Jul 2011 06:26:31 -0700 (PDT)
Subject: [Rd] Best practices for writing R functions
Message-ID: <1311341191873-3686674.post@n4.nabble.com>

I am developing an R package for internal use, and eventually for public
release. My understanding is that there is no easy way to avoid copying
function arguments in R (i.e. we don't have the concept of pointers in R),
which makes me wary of freely creating chains of function calls since each
function call implies data copy overhead.

Is the above assessment fair? Are there any good write-ups on best practices
for writing efficient R libraries that take into consideration the
above-mentioned limitations, and any others that might exist?

Thank you,
Alireza


--
View this message in context: http://r.789695.n4.nabble.com/Best-practices-for-writing-R-functions-tp3686674p3686674.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] Best practices for writing R functions
Alireza Mahani