datadrivencv icon indicating copy to clipboard operation
datadrivencv copied to clipboard

Can we generate nice looking compact short Resume using the in_resume filter in the GoogleSheet?

Open mohitshrestha opened this issue 5 years ago • 5 comments

Using your DataDrivenCV package, how can we generate Short Resume using the filter in the GoogleSheet? GoogleSheet does contain 'in_resume' column with 'TRUE/FALSE' values, How can we generate only the records with in_resume = TRUE, and nicely format it in a compact format, using dd_resume.css incorporating all the latest improvements from dd_cv.css file.

Previously I was able to generate nice looking compact short Resume using your CV package in GitHub. Did you remove generating short Resume functionality in this DataDrivenCV package? I do see few old resume related files but it currently doesn't seem to be used. Furthermore, it probably needs updating with latest improvements you made in DataDrivenCV.

mohitshrestha avatar Jun 06 '20 10:06 mohitshrestha

Hi!

Yeah, I mildly abandoned the shorter resume version in an effort to keep things simple when going to the package format. That being said, it's just a matter of adding back in a resume mode to the data loading function to filter out the non-desired entries.

Something like this:

create_CV_object <-  function(data_location,
                              pdf_mode = FALSE,
                              sheet_is_publicly_readable = TRUE,
                              cache_data = TRUE,
                              resume_mode = FALSE){
  ...
  if(resume_mode){
      cv$entries_data %<>% filter(in_resume)
  }
  ...
}

The goal is to get this functionality back as it is valuable I think. Thanks for letting me know that there's interest.

nstrayer avatar Jun 28 '20 21:06 nstrayer

I believe I got this to work with the following code:

create_CV_object <-  function(data_location,
                              pdf_mode = FALSE,
                              sheet_is_publicly_readable = TRUE,
                              resume_mode = FALSE) {
...
if(resume_mode){
    cv$entries_data %<>% dplyr::filter(in_resume == "TRUE")
  }
...
}

Unclear if it breaks things elsewhere.

MaraAlexeev avatar Nov 14 '20 19:11 MaraAlexeev

Where is this extra code meant to be added? I've tried in line 23-26 of the cv.rmd file but can't seem to get it working. Would you mind explaining further?

MerrynRoe avatar Jul 28 '21 09:07 MerrynRoe

It should be placed in the CV_printing_functions.R file. Specifically: somewhere within the already-existing create_CV_object function (lines 17-101), as demonstrated by the repository owner above.

ko-suta avatar Jan 06 '22 11:01 ko-suta

It should be placed in the CV_printing_functions.R file. Specifically: somewhere within the already-existing create_CV_object function (lines 17-101), as demonstrated by the repository owner above.

if(resume_mode){
  cv$entries_data %<>% dplyr::filter(in_resume == "TRUE")
}

is inserted after the spreadsheet entries are read into cv.

e.g. after:


...

  } else {
    # Want to go old-school with csvs?
    cv$entries_data <- readr::read_csv(paste0(data_location, "entries.csv"), skip = 1)
    cv$skills       <- readr::read_csv(paste0(data_location, "language_skills.csv"), skip = 1)
    cv$text_blocks  <- readr::read_csv(paste0(data_location, "text_blocks.csv"), skip = 1)
    cv$contact_info <- readr::read_csv(paste0(data_location, "contact_info.csv"), skip = 1)
  }

DavidPatShuiFong avatar Oct 10 '23 05:10 DavidPatShuiFong