Working With Different Versions of an R Package

Installing Packages to a Custom Location Installing Development Packages Installing Outdated Packages Special cases Reproducibility via a Project-Specific Library Recently, I had to install an older version of an R package, because a function was deprecated that I wanted to use. I wanted to install the old version in addition to and not instead of the new version. This post has been updated in April 2020. Previously, install_version() and install_github() had no lib argument which made it necessary to use a workaround via the withr package to install to a non-standard library. [Read More]

Font Embedding for LaTeX and R Users

Use cairo_pdf()

What is Font Embedding Problem: R does not embed fonts Solution in R: Use cairo_pdf() Solution With Completed PDF Recently, I sent my dissertation as a PDF file to a copy shop and got an email back that I had not embedded all fonts and that they won’t print it for me. What? So instead of celebrating the submission, I had to search online for pdf latex “font embedding”, and this blog post is a summary of that afternoon. [Read More]

Hello World

Hello, my name is Hansjörg, and I am a postdoctoral researcher in the psychology department at the University of Mannheim, Germany. I want to start blogging today, because I always wanted to, and because one of my R heroes Yihui Xie made this possible through his R package blogdown: It seems I made it, and it's easy to summarize my 2017: Another year, another #rstats package (blogdown), another book, and still endless joy. [Read More]