Saves R markdown and HTML reports in the area specified by the user.
Uses knitr and markdown to create reports. Reports have the extensions .Rmd or .html.
By default the table.css
style sheet is used for format the html output.
saveReport(compareObject, reportName, reportLocation = ".",
HTMLReport = TRUE, showInViewer = TRUE, stylesheet = NA,
printAll = FALSE, ...)
a dataCompareR object.
String. The name of the report. Reports will be saved as reportName.Rmd and (optionally) reportName.html in
reportLocation
String. Location to save reports specified by the user. The R markdown and (optionally) HTML reports will be saved in this area
Boolean. Option to output html report.
Boolean. Does the html report open automatically in the viewer?
String. Optional link to customised css stylesheet
Boolean. If TRUE, all mis-matches in the data are printed to the file. This acts as a shortcut
to get all mismatches in the report, compared to passing the number in mismatchCount
. When TRUE, overrides the
mismatchCount
field passed via ellipses
Optional arguments which will be passed to summary
, for example mismatchCount
Other dataCompareR.functions: generateMismatchData
,
print.dataCompareRobject
,
rCompare
,
summary.dataCompareRobject
# NOT RUN {
# }
# NOT RUN {
saveReport(rcObj, reportName = 'testReport')
# }
Run the code above in your browser using DataLab