Some posts about Vim, tmux, R, Rcpp, Git and other stuff.

Terminals and tmux

tmux: improving the LaTeX compile experience in Vim

Vim

R and Rcpp

Make an R package
Simple Rcpp functions
Make an R package using Rcpp
Rcpp classes (Part 1): A simple class
Rcpp classes (Part 2): Public/private/read-only fields
Rcpp classes (Part 3): Using header files
Rcpp classes (Part 4): Nested classes
Rcpp classes (Part 5): Derived classes
Unit testing in R
Writing documentation for R packages

Git: version control and syncing

Git: how to revert to an earlier version
Git: more about the revert command
Using Git to sync different computers
Git: branch and merge (fix syncing issues)

latexdiff and git-latexdiff

Notational Velocity

Installing and setting up Notational Velocity to work with Simplenote and Dropbox

SQL

Getting started with SQL
Extracting data from SQL

Beamer templates

Installing the emerald fonts package
All emerald fonts
Beamer blackboard template (black)
Beamer blackboard template (green)
Beamer blackboard template (gray)

Quick installation on OSX

Quick installation on Linux

Linux Python install
Linux gcc6 install
Quick LaTeX install
Quick Solaris setup

C++

Unit testing with doctest

Old posts

(These posts were useful to me at one point, but are no longer the way I do things. For example, I now use doctest rather than GoogleTest for C++. Still, these posts may be useful to somebody out there...)

tmux: manually installing version 2.1 (unnecessary as of 2017)
Unit testing in C++ with Google Test
Example 1: Minimum working example with Google Test
Example 2: separating the code and the tests with Google Test
Example 3: splitting tests into separate files and folders
Example 4: Testing an R package that uses Rcpp with testthat and Google Test


What is this?

Several months after making my first R package, I started to make another. The only problem was — I could not remember the procedure, and so had to spend some time learning the process all over again. The same thing happened when I recently returned to using Vim. After seeing Still Alice, I was inspired to make some short tutorials to help me remember how to do some of these (random) things.

After a friend of mine asked me a couple of questions about Vim and Rcpp, I decided to expand my personal tutorials and put them up here, and perhaps someone else will find them useful. Also, it makes it easy for me to look up the things I have trouble remembering. Although all the posts (in some way) are related to making statistical software, they are only really concerned with the programming side of things — hence the name 'statistically irrelevant'.

Almost everything on here comes from Stackoverflow posts and tips from others' websites; I've tried to give references to the original sources where possible. This website is my attempt to collect all the useful tutorials/instructions that I have come across in one place.





Credits: style file from Andrew Radev's site.

Last updated: 1 November 2017