Articles by nmv

parallelsugar: An implementation of mclapply for Windows

October 14, 2015 | nmv

An easy way to run R code in parallel on a multicore system is with the mclapply() function. Unfortunately, mclapply() does not work on Windows machines because the mclapply() implementation relies on forking and Windows does not support forking. Previously, I published a hackish solution that implemented a fake mclapply() ... [Read more...]

My Stat Bytes talk, with slides and code

June 24, 2013 | nmv

On Thursday of last week I gave a short informal talk to Stat Bytes, the CMU Statistics department‘s twice a month computing seminar. Quick tricks for faster R code: Profiling to Parallelism Abstract: I will present a grab bag of … Continue reading → [Read more...]

Getting R2WinBUGS to talk to WinBUGS 1.4 on Ubuntu 12.04 LTS

May 4, 2012 | nmv

Disclaimer 1: WinBUGS is old and not maintained. There are other packages to use, if you would like to take advantage of more modern developments in MCMC such as: PyMC which transparently implements adaptive Metropolis-Hastings proposals (among other great features), or the LaplacesDemon R package, which … Continue reading → [Read more...]

R is not C

December 7, 2011 | nmv

I keep trying to write R code like it was C code. It is a habit I’m trying to break myself of. For example, the other day I need to construct a model matrix of 1′s and 0′s in the … Continue reading → [Read more...]

Revolution R with Eclipse Helios

January 10, 2011 | nmv

One of the reasons that I don’t often take advantage of the cool features in Revolution R is that I absolutely can’t stand their Visual Studio interface. Previously, if I wanted to run something in RevoR, I fired up the … Continue reading → [Read more...]

Messing with R packages

June 17, 2010 | nmv

This was really frustrating. I’m trying to modify a package from Matt Johnson and although I could get the package he sent me to install flawlessly, I couldn’t un-tar it, make a change, re-tar it, and then R CMD INSTALL … Continue reading → [Read more...]

StatEt in Ubuntu 10.04

June 14, 2010 | nmv

I wanted a “lightweight” version of Eclipse to run R from Ubuntu. (I installed eclipse-pde using apt-get. It worked fine.) Once it was running, I installed StatEt via the “Install new software” feature from While it was downloading, I … Continue reading → [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)