Blog Archives

Managing a statistical analysis project – guidelines and best practices

September 30, 2010
By

Had to share this link today as I better read all the content it refers to and incorporate a lot of the recommended practices into my work flow. Thanks Tal Galili for compiling all those information.

Read more »

using R + ess-remote with screen in emacs

July 11, 2010
By

Dear list, I brought up this issue before but a good solution never arised: being able to use screen on a remote server (so if something goes wrong on my side I can always resume that R session) inside of emacs in order to utilize ESS. The closest thing I found to a good work

Read more »

Scheduled Parallel Computing with R: R + Rmpi + OpenMPI + Sun Grid Engine (SGE)

January 20, 2010
By

Recently I’ve learned how to do parallel computing in R on a cluster of machines thanks to the R packages snowfall, snow, and Rmpi. I’ve been using the SOCKET method with snowfall since together they make things simple. With these tools, I can reduce day/week long jobs to hours or a day across many (100)

Read more »

email yourself when a script or a job is done

December 15, 2009
By

i usually run long simulations in R on a remote server. i’ve read an article on linux journal about emailing yourself after something happens…i forgot. since my jobs are long, and i usually have to run multiple jobs sequentially, it’d be nice to look at my results immediately when they’re gone. good thing *nix based

Read more »

Compiling and Cross-compiling R packages for Windows (win32)

September 3, 2009
By

so recently i’m learning how to compile and cross-compile R packages from source for windows machines, which means i have to create windows binaries. the first option is to build on a windows system, and the 2nd is to cross-build on an intel-based linux or mac system. i will outline my experience. Send it off

Read more »

Cool articles in the New York Time’s: Statistics + R

August 14, 2009
By

so these articles are ‘old news,’ but here i am to blog it down before i forget. First article is entitled “For Today’s Graduate, Just One Word – Statistics,” and the second article is entitled “Data Analysts Captivated by R’s Power.” It really does feel re-enforcing and motivating when the NY Times write about your

Read more »

Parallel computing in R: snowfall/snow

June 20, 2009
By

I finally have time to try parallel computing in R using snowfall/snow thanks to this article in the 1st issue of R journal, which replaces R news. I didn’t try it before because i didn’t have a good toy example, and it seemed like a steep learning curve (i only guessed what parallel computing was).

Read more »

Run a remote R session in emacs: emacs + ESS + R + ssh

June 1, 2009
By

I don’t know how, but somehow, i stumbled on how to do this. I’ve always used emacs with ESS to run R, since spring 2006 (did it on windows, switched to linux, for years, and most recently, on my macbook). I liked this because i get the same usual interface across ALL platforms (well, maybe

Read more »

Emacs: AucTeX + Rubber + Sweave

May 30, 2009
By

I got rubber to work with auctex and sweave (Rnw) files with the help of this. Basically, combined with my other stuff, I tweaked my .emacs file to look like: ;;following is AucTeX with Sweave -- works ;;http://andreas.kiermeier.googlepages.com/essmaterials (setq TeX-file-extensions '("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo")) (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode)) (add-to-list

Read more »

Create multiple graphics in R without multiple calls to pdf / postscript / jpeg / png

May 14, 2009
By

To save multiple graphics, e.g, Rplot001.pdf, Rplot002.pdf, …, Rplot050.pdf, we don’t have to call pdf() 50 times (or any similar function). Use “Rplot%03d.pdf” for filename in pdf() and each plot() call will be saved to a new pdf file. Use dev.off() once at the end to close all devices! check out ?sprintf for more information

Read more »