# Turn off printing to pass CRAN checks
options("procs.print" = FALSE)
# Print mtcars to the viewer
proc_print(mtcars)
# Print mtcars to an RTF
pth <- proc_print(mtcars,
file_path = tempfile(fileext = ".rtf"),
titles = "MTCARS Proc Print Example",
output_type = "RTF", view = FALSE)
# View file
# file.show(pth)
Run the code above in your browser using DataLab