nstrayer / datadrivencv

R package for building customizable CVs from spreadsheets
http://nickstrayer.me/datadrivencv/
Other
589 stars 177 forks source link

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

Open mohitshrestha opened 4 years ago

mohitshrestha commented 4 years ago

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.

nstrayer commented 4 years ago

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.

MaraAlexeev commented 3 years ago

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.

MerrynRoe commented 3 years ago

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?

ko-suta commented 2 years ago

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.

DavidPatShuiFong commented 11 months ago

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)
  }