Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any documentation for optimizing the performance of R? [duplicate]

Tags:

optimization

r

I'm fairly new to R, and one thing that has struck me is that it's running fairly slow. Is there any documentation for optimizing R? For example, optimizing Python is described very good here. In my particular case I'm interested in optimizing R for batch jobs.

I have tried Googling for an answer of course, but it's not exactly easy to Google for R info since R is a pretty generic little search pattern.

like image 549
c00kiemonster Avatar asked Feb 13 '11 05:02

c00kiemonster


People also ask

How do you make a function faster?

The easiest way to make a function faster is to let it do less work. One way to do that is use a function tailored to a more specific type of input or output, or to a more specific problem.

How long is too long R script?

If an R script runs longer than 30 minutes, it times out. Interactive calls in the R script, such as waiting for user input, halts the script's execution.


1 Answers

For start, you should take a look at R Inferno by Patric Burns.

Than the best idea is to ask more detailed questions here.

like image 181
mbq Avatar answered Oct 22 '22 00:10

mbq