This function saves the name of the last created table to allow copying it
to the HTML report using the “Export results to report” menu, or
directly using the copyTableToOutput
function.
setLastTable(name, title = NULL)
The name of the table, which must correspond to an object in the global environment.
The title to give to the table, which will be displayed in the report,
or NULL
for none.
The title is saved as the “title” attribute of the object called as
name
in the global environment. You may need to call activateMenus
so that the relevant menus are enabled.