Build 32 bit R on 64 bit Ubuntu by utilizing chroot

Posted by & filed under Linux, R.

In the past, I’ve described how one could build multiarch (64 bit and 32 bit) versions of R on a 64 bit Ubuntu machine. The method based on this thread no longer works as of R 2.13 or 2.14 I believe. I received advice from someone on #R over on freenode (forgot who) a few… Read more »

Log output for screen

Posted by & filed under Linux.

The one thing that annoys me when I use screen is that I can’t scroll up after a long output has printed. To log outputs, add the following near the top (required!) of your screenrc file ($HOME/.screenrc): # auto-log http://www.cmdln.org/2007/07/20/automatic-session-logging-and-monitoring-with-gnu-screen-for-the-paranoid/ ## search for “STRING ESCAPES” in the manpage # logfile /tmp/screen_%Y-%m-%d-%c:%s_%n.log ## not using above… Read more »

R from source

Posted by & filed under R.

The following are notes for myself. I like to use the bleeding edge version of R: svn checkout https://svn.r-project.org/R/trunk/ r-devel cd r-devel ./tools/rsync-recommended ## use the following to update sources: svn update ## pre-reqs sudo apt-get build-dep r-base #sudo apt-get install gcc g++ gfortran libreadline-dev libx11-dev xorg-dev #sudo apt-get install texlive texinfo ./configure make sudo… Read more »

Compile R on Mac OS X

Posted by & filed under Mac OS X.

I did this before on my Macbook, but never documented. Wanted to document my attempt on the Mac virtual machine. Install Xcode (gcc/g++) and gfortran per this site. Download the R source file (2.12 in this example), and extract it. ./configure did not work (Fortran issue). Per this, this, and this, I used: ./configure –with-blas‘-framework… Read more »

record music from last.fm using shell-fm

Posted by & filed under Coding.

as i mentioned before again and again, i’ve been working on to get shell-fm to record music from last.fm. originally, i was trying to get shell-fm pipe to tee to save the songs and play using madplay (or mplayer) based on this method. this worked. i just need to write scripts to post process the… Read more »