Adapted to RStudio and the new synesthesia package.