This is a method for finalizing a report after results have been published. The exact nature of finalizing depends on the report type, as detailed below.
signature(publicationType = "DataPackage")
finish on a DataPackage object rewrites the DESCRIPTION file, making sure that all of the dependencies for the objects in the DataPackage are listed.
signature(publicationType = "HTMLReport")
finish on an HTMLReport calls the
closePage, which closes the body and html tags on the page and closes the connection to the file.
signature(publicationType = "HTMLReportRef")
finish on an HTMLReportRef calls all the finish handler
ReportHandlers attached to the report. These handlers
perform various actions depending on the desired behavior
of the report.
1 2 3 4 5
my.df <- data.frame() ## html.report <- HTMLReport(shortName = "my_html_file", ## reportDirectory = "reportDirectory") # publish(my.df, html.report) ## finish(html.report)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.