A workflow to programmatically generate my Curriculum Vitae from templated .csv files in the R language both
- when I push changes to the repository and
- on weekly basis using a Github Actions (gh) cron-job (for instance to automatically receive updates from web sources such as Google Scholar - if any).
The (gh) .yml file relies on my docker image that includes all R dependencies for the generation of my Curriculum Vitae (it is advised to use a docker image due to the tinytex and fontawesome dependencies which can cause headaches sometimes). The cv.Rmd file takes as parameter also the docker working directory (which corresponds to the Github repository) from inside the .yml file so that minimal adjustments are required.
In a final step - if an R user intends to replicate the whole process - the
- Github Url has to be modified in the following way
https://raw.githubusercontent.com/{PATH TO THE CV.pdf FILE}
and - Google Docs Url has to be modified in the following way
https://docs.google.com/viewer?url={PATH TO THE CV.pdf FILE}
to display the My.CVitae/docs/cv.pdf output file in a web format.
References:
- https://github.com/mitchelloharawild/vitae
- https://github.com/seabbs/cv
- https://github.com/loreabad6/R-CV
- https://dirask.com/posts/Github-how-to-display-raw-PDF-from-github-repository-in-web-browser-instead-of-download-PpqXnD