Title: | Templates and helper functions for building a CV with spreadsheets |
---|---|
Description: | Separates the CV format from the content using spreadsheets, RMarkdown, and Pagedown. Built to allow easy out-of-the-box behavior, but also to allow you to go beyond the defaults with customization and lack of lock-in to a given format. |
Authors: | Nick Strayer |
Maintainer: | Nick Strayer <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-11-11 05:00:22 UTC |
Source: | https://github.com/cct-datascience/datadrivencv |
Constructs a network based on your position data to be used as a logo. Interactive in HTML version and static in the PDF version. Notes are entries, colored by section and connected if they occurred in the same year
build_network_logo(position_data)
build_network_logo(position_data)
position_data |
position data from your |
Interactive force-directed layout network of your CV data
Sets up examples of the four CSVs needed for building CV
use_csv_data_storage(folder_name = "data", create_output_dir = TRUE)
use_csv_data_storage(folder_name = "data", create_output_dir = TRUE)
folder_name |
Name of the folder you want csvs stored in relative to current working directory |
create_output_dir |
If the requested output directory is missing should it be created? |
A new folder <folder_name>/
with entries.csv
, text_blocks.csv
, language_skills.csv
, and contact_info.csv
in it.
working directory.
# Make a temp directory for placing files # This would be a real location for a typical situation temp_dir <- fs::dir_create(fs::path(tempdir(), "cv_w_csvs")) datadrivencv::use_csv_data_storage( folder_name = fs::path(temp_dir, "csv_data"), create_output_dir = TRUE ) list.files(fs::path(temp_dir, "csv_data"))
# Make a temp directory for placing files # This would be a real location for a typical situation temp_dir <- fs::dir_create(fs::path(tempdir(), "cv_w_csvs")) datadrivencv::use_csv_data_storage( folder_name = fs::path(temp_dir, "csv_data"), create_output_dir = TRUE ) list.files(fs::path(temp_dir, "csv_data"))
Sets up the .Rmd
file for a data-driven cv in current working directory.
Also adds css file for current CV so style can be custommized.
use_datadriven_cv( full_name = "Sarah Arcos", data_location = system.file("sample_data/", package = "datadrivencv"), pdf_location = "https://github.com/nstrayer/cv/raw/master/strayer_cv.pdf", html_location = "nickstrayer.me/datadrivencv/", source_location = "https://github.com/nstrayer/datadrivencv", which_files = "all", output_dir = getwd(), create_output_dir = FALSE, use_network_logo = TRUE, open_files = TRUE )
use_datadriven_cv( full_name = "Sarah Arcos", data_location = system.file("sample_data/", package = "datadrivencv"), pdf_location = "https://github.com/nstrayer/cv/raw/master/strayer_cv.pdf", html_location = "nickstrayer.me/datadrivencv/", source_location = "https://github.com/nstrayer/datadrivencv", which_files = "all", output_dir = getwd(), create_output_dir = FALSE, use_network_logo = TRUE, open_files = TRUE )
full_name |
Your full name, used in title of document and header |
data_location |
Path of the spreadsheets holding all your data. This can
be either a URL to a google sheet with multiple sheets containing the four
data types or a path to a folder containing four |
pdf_location |
What location will the PDF of this CV be hosted at? |
html_location |
What location will the HTML version of this CV be hosted at? |
source_location |
Where is the code to build your CV hosted? |
which_files |
What files should be placed? Takes a vector of possible
values |
output_dir |
Where should the files be placed? Defaults to your current working directory |
create_output_dir |
If the requested output directory is missing should it be created? |
use_network_logo |
Should logo be an interactive network based on your
CV data? Note that this uses the function
|
open_files |
Should the added files be opened after creation? |
cv.rmd
, dd_cv.css
, render_cv.r
, and cv_printing_functions.r
written to the current working directory.
# Make a temp directory for placing files # This would be a real location for a typical situation temp_dir <- fs::dir_create(fs::path(tempdir(), "my_cv")) use_datadriven_cv( full_name = "Nick Strayer", data_location = "https://docs.google.com/spreadsheets/d/14MQICF2F8-vf8CKPF1m4lyGKO6_thG-4aSwat1e2TWc", pdf_location = "https://github.com/nstrayer/cv/raw/master/strayer_cv.pdf", html_location = "nickstrayer.me/cv/", source_location = "https://github.com/nstrayer/cv", output_dir = temp_dir, open_files = FALSE ) # Files should be where they were requested list.files(temp_dir)
# Make a temp directory for placing files # This would be a real location for a typical situation temp_dir <- fs::dir_create(fs::path(tempdir(), "my_cv")) use_datadriven_cv( full_name = "Nick Strayer", data_location = "https://docs.google.com/spreadsheets/d/14MQICF2F8-vf8CKPF1m4lyGKO6_thG-4aSwat1e2TWc", pdf_location = "https://github.com/nstrayer/cv/raw/master/strayer_cv.pdf", html_location = "nickstrayer.me/cv/", source_location = "https://github.com/nstrayer/cv", output_dir = temp_dir, open_files = FALSE ) # Files should be where they were requested list.files(temp_dir)
Use template file from package
use_ddcv_template( file_name, params = NULL, output_file_name = file_name, output_dir = getwd(), create_output_dir = FALSE, warn_about_no_change = TRUE, open_after_making = FALSE )
use_ddcv_template( file_name, params = NULL, output_file_name = file_name, output_dir = getwd(), create_output_dir = FALSE, warn_about_no_change = TRUE, open_after_making = FALSE )
file_name |
Name of file from templates to use: e.g. |
params |
Parameters used to fill in |
output_file_name |
Name of file after being placed. |
output_dir |
Directory location for output to be placed in. |
create_output_dir |
If the requested output directory is missing should it be created? |
warn_about_no_change |
If there is no change between the new file and what was already there, should a warning be issued? |
open_after_making |
Should the file be opened after it has been written? |