Here are the slides given during the Montreal R User Group workshop on April 30, 2012. RR-MtlRUsers.beamer

The following post shows how to manually convert a Sweave LaTeX document into a knitr R Markdown document. The post (1) reviews many of the required changes; (2) provides an example of a document converted to R Markdown format based on an analysis of Winter Olympic Medal data up to and including 2006; and (3) discusses the pros...

I've been joking for a while now that I was going to start solving project euler problems in LaTeX. Then today I finally did one. So let's talk about solving Project Euler problem number 1 (the easy one) using only LaTeX. The problem asks you to sum up all the positive integers below 1000 which are divisible by 3...

I recently had to prepare a beamer presentation in hindi/devanagari. I usually use emacs-orgmode with a lot of R source code embedded in it to prepare my beamer presentations. To adapt the entire setup to work with devanagari, this is what I needed to do. Make orgmode export to latex using xetex rather than

LaTeX is a typesetting system that can easily be used to create reports and scientific articles, and has excellent formatting options for displaying code and mathematical formulas. Sweave is a package in base R that can execute R code embedded in LaTeX files and display the output. This can be used to generate reports and quickly fix...

I was having a little trouble getting RStudio to process BibTex entries and compile a LaTeX file. Bumping around on the great RStudio help forum, I found this entry, which pointed me in the direction. I needed to set a system environment variable in R ...

As a PhD student that uses quantitative methods a lot, one annoying part of my job is to type up my results, especially formatting tables with regression models can be a lot of work. Luckily there is an excellent package in R, apsrtable, which will gen...

On my road to eventually running all of my programs off an USB device I’ve gotten a little bit closer yesterday thanks to input from Duncan Murdoch and Yihui Xie. Eventually running the entire Windows OS off a USB drive would be nice (not talking about running it as a Virtual Machine, but to have … Continue reading...