Just discovered: The {servr} #RStats 馃摝 's httd() function spins up a local Web server if you need to test an HTML file that requires a Web server to run.
For example servr::httd("docs") automatically launches a browser that displays an index.html file in your docs directory.
https://pkg.yihui.org/servr/
By @yihui