print_skill_bars: Print skill bars

Description Usage Arguments Examples

View source: R/print_skill_bars.R

Description

Writes out the skill bars as divs with varying widths based on skill level

Usage

1
2
3
4
5
6
print_skill_bars(
  cv,
  out_of = 5,
  bar_color = "#969696",
  bar_background = "#d9d9d9"
)

Arguments

cv

object of class 'cv_printer' created by new_cv_printer

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.

Examples

 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)

nstrayer/cvdown documentation built on Feb. 18, 2020, 12:35 a.m.