WIP: add pdf in Rcompile