Skip to content

diego-ponce/resume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Rmarkdown Resume to HTML and PDF

In my professional life, I have become an enthusiastic advocate for a plain-text documentation environment, and have adopted Markdown and Rmarkdown as the basic file formats that I use to generate documentation. In my personal life, I have an archive of Word docs which get converted to pdf when I need a resume. This past weekend I decided to see what kind of simple workflow I could put together which would align my resume to my documentation standards.

Requirements

install.packages('rmarkdown')
  • Other package dependencies to allow for dynamic content sourced in the content.csv and contact.yaml files:
install.packages("magrittr")
install.packages("dplyr")
install.packages("glue")
install.packages("readr")
install.packages("purrr")
install.packages("yaml")

How to run

  • Clone this repo
  • You can generate a sample resume from the .rmd file in Rstudio by opening the file
  • clicking the knit option at the top of the file
  • if you uncomment the custom knit function at the top of the file, a pdf is generated in the background using wkhtmltopdf in the same working directory as the rmarkdown and html files
  • if you run into errors, check to make sure that you can generate an Rmarkdown file and run wkhtmltopdf separately

Alternatives, inspiration, and design decisions

I was inspired by pagedown which provides a feature rich resume from Rmarkdown. There were a few issues that I wrestled with:

  1. I prefer a rather bare resume, much closer to out-of-the-box Rmarkdown file
  2. Both the chrome_print method and the 'using the browser' to PDF functionality converted my links to raw markdown [friendly link](https://www.url.com). From the pagedown documentation, this is a feature not a bug since someone printing the PDF would need the fully qualified url to find the resource. In my case, I imagined those viewing my resume would be viewing it on a computer, so I wanted the links to be clickable. In the case in which they printed the resume, the links would likely provide enough information for my readers to find the correct pages.

Enter wkhtmltopdf! With a simple $ wkhtmltopdf [OPTIONS] <resume_filename>.html <resume_filename>.pdf I had a resume which used Rmarkdown's CSS, and retained clickable links.

To increase efficiency, I added a custom knit function to the Rmarkdown front matter YAML so that the wkhtmltopdf call was made when I knit the file.

Code for making the resume feed from a csv and generate formatted markdown is largely based off this extremely helpful blog on building a data-driven cv with R. If you want a pure R solution to the links and avoid the dependency on wkhtmltopdf, there is a great section on context aware output.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages