Title: | CV for Quarto & Typst |
---|---|
Description: | Provides functions to create a entry of CV for Quarto & Typst. |
Authors: | Kazuharu Yanagimoto [aut, cre]
|
Maintainer: | Kazuharu Yanagimoto <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.2.2 |
Built: | 2025-03-04 05:19:02 UTC |
Source: | https://github.com/kazuyanagimoto/typstcv |
Example data: Awards
award
award
award
A dataframe of awards
title
Title of award
location
Location of award
date
Date of award
description
Description of award
data-raw/data.R
Example data: Education
educ
educ
educ
A dataframe of educational history
title
Degree title
location
Location of institution
date
Date of degree
description
Institution
data-raw/data.R
Data Column Formatter
format_date( data, start = "start", end = NULL, sep = " - ", date_format = "%b %Y", colname_date = "date", replace_na = "Present", sort_by = "none", decreasing = TRUE )
format_date( data, start = "start", end = NULL, sep = " - ", date_format = "%b %Y", colname_date = "date", replace_na = "Present", sort_by = "none", decreasing = TRUE )
data |
Data frame for resume entry |
start |
Start date column name. Default is "start" |
end |
Optional. End date column name. |
sep |
Separator between start and end date. Default is " - " |
date_format |
Date format. Default is "%B %Y" |
colname_date |
Name for the generated date column. Default is "date" |
replace_na |
Value to replace NA values. Default is "Present" |
sort_by |
Sort by "none", "start" or "end". Default is "none" |
decreasing |
Sort in decreasing order. Default is TRUE |
Data frame with formatted date column
work <- data.frame( title = c("Technical Assistant", "Junior Professor", "Associate Professor"), location = c("Bern, Switzerland", "Bern, Switzerland", "Zürich, Switzerland"), start = as.Date(c("1902-01-01", "1908-01-01", "1909-01-01")), end = as.Date(c("1908-01-01", "1909-01-01", "1911-01-01")), description = c("Federal Patent Office", "University of Bern", "University of Zürich") ) work |> format_date(end = "end", date_format = "%Y", sort_by = "start") |> resume_entry()
work <- data.frame( title = c("Technical Assistant", "Junior Professor", "Associate Professor"), location = c("Bern, Switzerland", "Bern, Switzerland", "Zürich, Switzerland"), start = as.Date(c("1902-01-01", "1908-01-01", "1909-01-01")), end = as.Date(c("1908-01-01", "1909-01-01", "1911-01-01")), description = c("Federal Patent Office", "University of Bern", "University of Zürich") ) work |> format_date(end = "end", date_format = "%Y", sort_by = "start") |> resume_entry()
Example data: Publications
pub
pub
pub
A dataframe of publications
title
Title of publication
location
Journal
date
Date of publication
data-raw/data.R
Convert a data frame to a resume entry
resume_entry( data, title = "title", location = "location", date = "date", description = "description", details = NULL )
resume_entry( data, title = "title", location = "location", date = "date", description = "description", details = NULL )
data |
A data frame with columns for title, location, date, and description |
title |
The column name for the title. Default is "title" |
location |
The column name for the location. Default is "location" |
date |
The column name for the date. Default is "date" |
description |
The column name for the description. Default is "description" |
details |
The column name for additional details. Default is NULL |
A string with the resume entry
educ <- data.frame( title = c("Ph.D. in Physics", "Master of Science"), location = c("Zürich, Switzerland", "Zürich, Switzerland"), date = c("1905", "1896 - 1900"), description = c("University of Zürich", "ETH") ) resume_entry(educ) # With details award <- data.frame( title = c("Nobel Prize in Physics"), location = c("Stockholm, Sweden"), date = c("1921"), description = c("For his services to"), detail1 = c("Theoretical Physics"), detail2 = c("Discovery of the law of the photoelectric effect") ) resume_entry(award, details = c("detail1", "detail2"))
educ <- data.frame( title = c("Ph.D. in Physics", "Master of Science"), location = c("Zürich, Switzerland", "Zürich, Switzerland"), date = c("1905", "1896 - 1900"), description = c("University of Zürich", "ETH") ) resume_entry(educ) # With details award <- data.frame( title = c("Nobel Prize in Physics"), location = c("Stockholm, Sweden"), date = c("1921"), description = c("For his services to"), detail1 = c("Theoretical Physics"), detail2 = c("Discovery of the law of the photoelectric effect") ) resume_entry(award, details = c("detail1", "detail2"))
Example data: Skills
skill
skill
skill
A dataframe of skills
title
Category of skill
description
List of skills
data-raw/data.R
Example data: Work experience
work
work
work
A dataframe of work experience
title
Job title
location
Location of job
date
Date of employment
description
Employer
data-raw/data.R