etiennebacher / altdoc

Alternative to pkgdown to document R packages
https://altdoc.etiennebacher.com
Other
62 stars 9 forks source link

preview_docs works on non-RStudio systems #246

Closed vincentarelbundock closed 7 months ago

vincentarelbundock commented 7 months ago

urlBrowser() is a useless call with docsify and docute, because we need a live server to display the website, so that just launches an empty browser.

But it turns out that servr::httw works perfectly fine, even in weird setups like mine: WSL Ubuntu on Windows.

This removes the rstudioapi check and calls this immediately.

vincentarelbundock commented 7 months ago

This is actually pretty nice. I have to admit that I never really got the need for preview_docs(), but now that I can use it in my own workflow, it's super fun.