Set up data

Get example data

wd <- autoCV::get_data(save_dir = file.path(tempdir(),"example_data"))
## Copying example data --> /tmp/RtmpyJS4Az/example_data
### List all files, grouped by subfolder 
autoCV::get_data_list(wd)
## $css
## [1] "override.css"
## 
## $cv_data
## [1] "education.csv"    "experience.csv"   "grants.csv"       "profile.csv"     
## [5] "publications.csv" "skills.csv"       "talks.csv"        "tools.csv"       
## 
## $img
##  [1] "Bioconductor.jpeg" "Brown.png"         "CSS.png"          
##  [4] "davinci.png"       "DEMON.png"         "GW.png"           
##  [7] "HTML.png"          "Imperial.webp"     "Imperial2.png"    
## [10] "Java.png"          "JavaScript.png"    "PGC.jpeg"         
## [13] "Python.png"        "R.svg"             "Turing.png"       
## [16] "UKDRI.jpeg"

Customise data

Now you may edit each file as needed to customise your CV. The subfolders are organised as follows:

  • cv_data/ contains the data files for each section of the CV.
  • img/ contains any images you wish to include in the CV.
  • css/ contains the CSS file for styling the CV.

Create CV

Set up template

file <- autoCV::get_template(wd = wd,
                             save_dir = tempdir(),
                             tagline = "Simplicity is the ultimate sophistication.",
                             extra = list("### Studio of Andrea del Verrocchio",
                                           "### Painter, Draughtsman, Engineer, Scientist",
                                           "### MD, PhD"),
                             logo = get_logo(img = system.file("img","davinci.png",
                                                               package = "autoCV"),
                                              width = "60px"),
                             force_new = TRUE
                             )
## Saving template to: /tmp/RtmpyJS4Az/CV.Rmd

You can then inspect and make any further edits to the Rmarkdown file by opening it with in RStudio with: browseURL(file)

browseURL(file)

Render as HTML

To generate the CV, render the template file with render_cv.

file_html <- autoCV::render_cv(file = file) 

You can then open the rendered HTML file in RStudio with: browseURL(file_html)

browseURL(file_html)

Render as PDF

To render the CV as a PDF instead, simply use the as_pdf argument.

file_pdf <- autoCV::render_cv(file = file, 
                              as_pdf = TRUE) 

Rendered examples

See here for an example of a rendered CV:

Session info

utils::sessionInfo()
## R version 4.4.0 (2024-04-24)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 22.04.4 LTS
## 
## Matrix products: default
## BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so;  LAPACK version 3.10.0
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## time zone: UTC
## tzcode source: system (glibc)
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] autoCV_0.99.1
## 
## loaded via a namespace (and not attached):
##  [1] vctrs_0.6.5       cli_3.6.2         knitr_1.47        rlang_1.1.4      
##  [5] xfun_0.44         purrr_1.0.2       textshaping_0.4.0 data.table_1.15.4
##  [9] jsonlite_1.8.8    pagedown_0.20     htmltools_0.5.8.1 ragg_1.3.2       
## [13] sass_0.4.9        rmarkdown_2.27    evaluate_0.23     jquerylib_0.1.4  
## [17] fastmap_1.2.0     yaml_2.3.8        lifecycle_1.0.4   memoise_2.0.1    
## [21] compiler_4.4.0    fs_1.6.4          htmlwidgets_1.6.4 systemfonts_1.1.0
## [25] digest_0.6.35     R6_2.5.1          magrittr_2.0.3    bslib_0.7.0      
## [29] tools_4.4.0       pkgdown_2.0.9     cachem_1.1.0      desc_1.4.3