Posts Tagged ‘ unix ’

Using R — Standalone Scripts & Error Messages

December 5, 2011
By

Open-source R is an amazing tool for statistical analysis and data visualization. Serious R gurus have found ways to do just about anything entirely within the R environment. Nevertheless, there are many of us who wish to plug R into …  ...

Read more »

Don Quijote — Word Statistics

June 4, 2011
By
Don Quijote — Word Statistics

Using the Gutenberg Project’s free text of Don Quijote + Unix for Poets, here are the most used (non-short) words in Miguel de Cervantes’ famous work: 2167 Quijote 2145 Sancho 1331 porque 1053 respondió 1027 había  900 merced  813 vuestra  79...

Read more »

Don Quijote — Word Statistics

June 4, 2011
By
Don Quijote — Word Statistics

Using the Gutenberg Project’s free text of Don Quijote + Unix for Poets, here are the most used (non-short) words in Miguel de Cervantes’ famous work: 2167 Quijote 2145 Sancho 1331 porque 1053 respondió 1027 había  900 merced  813 vuestra  79...

Read more »

The wonderful world of vim

July 20, 2010
By
The wonderful world of vim

When searching for a way to recover control carriage return symbols ^M into genuine ones (under vim), I found this handy page of vim tips. And then saw that the enthusiastic author had even a blog about vim! Obviously, this post will be meaningless for all readers not aware of the joys of the vim

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 »

Remove files with a specific pattern in R

July 3, 2009
By
Remove files with a specific pattern in R

A quick basic tip which can come in handy whether you need to rapidly remove files from a directory:junk <- dir(path="your_path", pattern="your_pattern") # ?dirfile.remove(junk) # ?file.removeClearly, for advanced needs, you can use system() and al...

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 »

vim plugin for R

May 11, 2009
By
vim plugin for R

For the vim/R-addicted a must to have: http://www.vim.org/scripts/script.php?script_id=2628

Read more »

screen in ubuntu 9.04

April 29, 2009
By
screen in ubuntu 9.04

As I told in a previous post, I consider the unix tool screen essential for my work. It seems that the just released Ubuntu 9.04  contains a package that make it easier to configure and use. You can find the full story here.

Read more »