When I build any bookdown document, including the Bookdown demo into gitbook or epub, all the links in RStudio preview are interpreted a relative. Only pdf version works correctly because it opens in Evince.
e.g. the line from Index.Rmd
To compile this example to PDF, you need XeLaTeX. You are recommended to install TinyTeX (which includes XeLaTeX): <https://yihui.name/tinytex/>.
when clicked in the preview gives an error:
/home/milo/https:/yihui.name/tinytex: No such file or directory
The result is the same when I use other link syntax, like:
[tinytex](https://yihui.name/tinytex/)
[tinytex](<https://yihui.name/tinytex/>)
edit:
This problem only manifests in the linux version. The windows version opens the correct URL in a browser.