R/produce_om_report.R
produce_om_report.Rd
Shortcut function with all steps to provide an Outcome Measures report
produce_om_report(df, part = "ALL", format = "uploadable")
A dataframe set up according to the readme
A string with what part of the report you want to produce: 'all', 'A', etc.
A string ("uploadable"
will produce a properly formatted
upload file. "readable"
will produce a csv of the upload file (only
works for one part at a time). "both"
will provide both options, but
only works with one part at a time.
A txt or csv file at the path of your choice
# \dontshow{
#set temp directory for this example (not necessary for users)
.old_wd <- setwd(tempdir())
# }
#entire report
produce_om_report(om_students)
#> Uploadable results available at C:/Users/alanski/AppData/Local/Temp/Rtmp6NIZ2q/OutcomeMeasures_AllParts_2023-11-01.txt
#one part with csv output instead of key-value
produce_om_report(om_students, part = 'A', format = 'readable')
#> Readable results available at C:/Users/alanski/AppData/Local/Temp/Rtmp6NIZ2q/OutcomeMeasures_PartA_Readable_2023-11-01.csv
# \dontshow{
#reset directory for this example (not necessary for users)
setwd(.old_wd)
# }