Skip to content

explodecomputer/cv

Repository files navigation

Gibran Hemani's CV

Academic CV built using R - updated automatically from Google Scholar.

Structure

  • cv/cv.Rmd: CV structure implemented as an {rmarkdown} document.
  • data/*.csv: Data on each CV subcategory.
  • scripts/install.R: Installs/loads all R dependencies using the {pacman} 📦.

Tools

  • The {vitae} 📦 is used to provide a CV template.
  • {tidyverse} :tool: are used for data read in and manipulation.
  • {here} 📦 for path management.
  • {scholar} 📦 is used to pull papers from Google Scholar.
  • {bib2df} 📦 is used to organise Google Scholar results into bibtex format for easier manipulation.

Notes

Uses the cv/nature.csl file to format the citation styles. This is an edited version of the standard Nature format. It was edited using https://editor.citationstyles.org/visualEditor/ - allowing multiple named authors and the addition of the note field.

To run

Rscript pubs.r
render cv.Rmd

Troubleshooting

2024-05-06: bibliography_entries seems to be causing an issue - mitchelloharawild/vitae#251. To overcome this, render as normal and if it errors then run

tmpfile <- "cv_bristol/cv.tex"
a <- gsub("\\\\leavevmode", "\\\\item \\\\leavevmode", readLines(tmpfile))
writeLines(a, tmpfile)

then in the cv_bristol dir

xelatex cv.tex

Snippets

Get concise list of grants

library(dplyr)
a <- read.csv("data/grants.csv")
a %>%     
    mutate(
        start=as.Date(start, format="%d/%m/%Y"),
        end=as.Date(end, format="%d/%m/%Y")
    ) %>%
    arrange(desc(start)) %>%
    mutate(    
        s=paste0(
    "'", title, "'. ", funder, ". ", role, ". ", amount, currency, ". ", start, " - ", end, "."
)) %>% {.$s}

About

Gibran Hemani's CV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors