Description Usage Arguments Examples
View source: R/print_skill_bars.R
Writes out the skill bars as divs with varying widths based on skill level
1 2 3 4 5 6 | print_skill_bars(
cv,
out_of = 5,
bar_color = "#969696",
bar_background = "#d9d9d9"
)
|
cv |
object of class 'cv_printer' created by |
out_of |
What is the skill value out of? |
bar_color |
Color of filled in skill bar |
bar_background |
Color of background (unfilled in part) of skill bar. |
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 skill bars
printer <- print_skill_bars(printer)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.