Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automating some of the report QC steps #181

Open
kelliemac opened this issue Jul 11, 2024 · 3 comments
Open

Automating some of the report QC steps #181

kelliemac opened this issue Jul 11, 2024 · 3 comments

Comments

@kelliemac
Copy link
Contributor

It would be really helpful to have functions that automate some of the common report QC steps (ideally directly on the pdf/docx files), such as:

  • spelling checks
  • searching for broken links (e.g., Table ?? or Figure ??)

and to have a use_this style function that drafts a .R file to run these on on the appropriate report files (which could then be customized with any other checks that the report writer wants to add). For example, a prototype that runs a spell check could be something like:

setwd("/Volumes/kmacphee/Caskey820Analysis/bcell/Caskey820_Bcell_PT_Report_high_dose_interim_v2")

pdf_file <- "Caskey820_Bcell_PT_Report_high_dose_interim_v2.pdf"

report_names_list <- c('Caskey', 'MacPhee', 'Sato', 'Beatman', 'Drienna')
visc_wordlist <- c('VISC', 'PubID', 'IAVI', 'VRC', 'unblinded', 'Reproducibility')
bcell_wordlist <- c('AIRR', 'BALDR', 'BCR', 'trimer',  'IgG', 'IgDiscover')
my_wordlist <- c(names_list, visc_wordlist, bcell_wordlist)

spelling::spell_check_files(pdf_file,
                             ignore = my_wordlist,
                             lang = "en_US")
@kelliemac
Copy link
Contributor Author

If anyone has other ideas of QC steps to add to this list, or in general ways to speed up report QC by partially automating it, feel free to chime in! Just brainstorming for now.

@kelliemac
Copy link
Contributor Author

sort of duplicate of #119

@kelliemac
Copy link
Contributor Author

kelliemac commented Aug 23, 2024

See example from C101 B cell report, using testthat package to automate some of the checks:
https://github.com/FredHutch/Caskey820Analysis/tree/main/bcell/Caskey820_Bcell_PT_Report_high_dose_interim_v2/tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant