#Follow the steps:
-
Install package
devtools::install_github('nstrayer/datadrivencv') -
to see more details
?datadrivencv::use_datadriven_cv -
To run the package
datadrivencv::use_datadriven_cv(full_name = "Ravindra Raut", data_location = "https://docs.google.com/spreadsheets/d/1vSZcNnmwqgQBbtCp1SAwGIUB8cqqa3y6VgNqH3C6Jv8/edit#gid=0", pdf_location = "https://github.com/Ravindra-Raut/resume/cv.pdf", html_location = "https://github.com/Ravindra-Raut/resume/cv.html", source_location = "https://github.com/Ravindra-Raut/resume")
rmarkdown::render("cv.rmd", params = list(pdf_mode = FALSE), output_file = "cv.html")
tmp_html_cv_loc <- fs::file_temp(ext = ".html") rmarkdown::render("cv.rmd", params = list(pdf_mode = TRUE), output_file = tmp_html_cv_loc)
pagedown::chrome_print(input = tmp_html_cv_loc, output = "cv.pdf")
rmarkdown::pandoc_convert("raut_resume.html", to = "pdf")
This repo contains the source-code and results of my CV built with the pagedown package and a modified version of the 'resume' template.
The main files are:
raut_index.Rmd
: Source template for the cv, contains a variablePDF_EXPORT
in the header that changes styles for pdf vs html.raut_index.html
: The final output of the template when the header variablePDF_EXPORT
is set toFALSE
.positions.csv
: A csv with columns encoding the various fields needed for a position entry in the CV. A columnsection
is also available so different sections know which rows to use.css/
: Directory containing the custom CSS files used to tweak the default 'resume' format from pagedown. (Fromnstrayer/cv
.)parsing_functions.R
: Functions used to parse and properly format position data. (Fromnstrayer/cv
.)strayer_template/
: Original CV and resume documents forked fromnstrayer/cv
.
Special thanks to Nick Strayer for providing his pagedown CV template on GitHub and adding customization instructions.