Description Usage Arguments Examples
View source: R/print_section.R
Print position section
1 2 3 4 5 6 7 | print_section(
cv,
section_id,
title = section_id,
icon = "graduation-cap",
aside_text = NULL
)
|
cv |
object of class 'cv_printer' created by |
section_id |
Name of section to be printed as encoded by the column 'section' in positions dataframe. |
title |
Name to be printing at top of section. Defaults to 'section_id' value. |
icon |
Name of font-awesome icon to be used for section. |
aside_text |
Name of label for aside text as stored in the 'text_blocks' section of cv data. Leave as 'NULL' to ommit. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Function to get sample csvs from package data store.
sample_data <- function(name) system.file(paste0('sample_csvs/', name), package = "cvdown")
# Run function on these sample datasets
data <- gather_data_from_csvs(positions_loc = sample_data('positions.csv'),
skills_loc = sample_data('language_skills.csv'),
text_blocks_loc = sample_data('text_blocks.csv'),
contact_info_loc = sample_data('contact_info.csv'))
# Setup CV printer
printer <- new_cv_printer(data, pdf_mode = TRUE)
# Print education section
printer <- print_section(printer, 'education')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.