datadrivencv icon indicating copy to clipboard operation
datadrivencv copied to clipboard

prepend / to csv files (lines 49-52 of cv_printing_functions.r)

Open elikesprogramming opened this issue 4 years ago • 0 comments

Hi, thx for this cool package. I'm just trying it out and did datadrivencv::use_csv_data_storage() to set up "examples of the four CSVs needed for building CV" in the default folder_name = "data". Then

use_datadriven_cv(
  full_name = "E",
  data_location = "data"
)

Then the render_cv.r script fails because it tries to read readr::read_csv(paste0(data_location, "entries.csv"), skip = 1) thus, tries to read dataentries.csv instead of data/entries.csv.

Other users would not face that little glitch if you just paste0(data_location, "/entries.csv") (prepending slash to the filename). Or, perhaps just highlight (underline and use bold fontface) in the docs that the data_location in use_datadriven_cv should have a trailing slash.

elikesprogramming avatar Aug 05 '20 13:08 elikesprogramming