Opens a file in the viewer of RStudio, Positron or VS Code when it is an
HTML page, and otherwise in the web browser or the program the system
opens it with. It opens files only in an interactive session. In a script,
a knitr or Quarto render, or under R CMD check it opens nothing and
prints 1 line with the file's path, so a file written to the temporary
folder is never left unseen. The examples that write a file end with it.
See also
Other Report functions:
render_report(),
render_results(),
sframe_analysis_qmd(),
sframe_codebook(),
sframe_format_result(),
sframe_report_source(),
sframe_reports,
sframe_save_figures()
Examples
path <- file.path(tempdir(), "hello.html")
writeLines("<h1>Hello</h1>", path)
sframe_show(path)