Single-source publishing for R users