RStudio - display html content in view pane

I would like to display the html content stored in my working directory in the RStudio view pane. I read this post and thought it should be possible.

However, local files are always displayed in an external browser. Is there something I can't see?

# This will render in Viewer pane
tempDir <- tempfile()
dir.create(tempDir)
htmlFile <- file.path(tempDir, "test.html")
writeLines('<html><body>Hi there</body></html>', htmlFile)
rstudio::viewer(htmlFile)

# This will render in external browser
writeLines('<html><body>Hi there</body></html>', 'test.html')
rstudio::viewer('test.html')

      

+3
r rstudio


source to share


No one has answered this question yet

Check out similar questions:

189
Update R with RStudio
12
Error 43, inserting an r tag into a pdf on rStudio on Windows
4
Get programmatic dimensions of RStudio Viewer
4
two screens in the RStudio Viewer panel
3
Why does RMarkdown "render" behavior depend on whether it invoked RSTudio Server or the PHP wrapper?
2
RStudio view pane not working?
2
The HTML table is not displayed in RStudio Viewer, but only as code in the console - why?
1
MathJax script error after setting rstudio.markdownToHTML ()
0
Network Directory as Working Directory - R Notebook graphics are not displayed



All Articles
Loading...
X
Show
Funny
Dev
Pics