Hi,
I am analysing very large data and I need to split the processing and reporting into separate files, each performing different steps. I am working with .Rmd files, each generating an .html report for that piece of analysis. Besides processing the actual data, each report contains some introduction, documentation, figures, and results.
As this is an ongoing project with all pieces connected, I need often to refer from one report to another, being it another separate "branch" or a "daughter" report that deserved its own separate file.
Doing it in base RStudio (local) is easy. I just need to type in markdown something like:
See here: [link text](./path_and_name_to_daughter_report.html)
However, when I open the "parent" report from Rstudio server (Files - View in Web Browser), clicking that link leads to a dead end
The requested page was not found.
Please contact your system administrator for assistance, or click [here]to go back.
This is (obviously) because the linked-to URL is not exported by the server, so the webpage doesn't exist:
http://url.of.my.server.org:PORT/path_and_name_to_daughter_report.html
when files opened through RStudio Server have an URL like:
http://url.of.my.server.org:PORT/file_show?path=%2Freal%2Fpath%2Fto%2Fmy%2Ffiles%2Fparent_report.html
I can make this work, if I create a link in markdown following that structure:
See here: [link text](.file_show?path=%2Freal%2Fpath%2Fto%2Fmy%2Ffiles%2Fpath_and_name_to_daughter_report.html)
I've tried this. This WORKS when opening the file from RStudio Server. However, these links are broken when opening the .html reports directly (outside Rstudio), or if I send them (the whole dir structure) to a colleague.
Is there any way to have functional links that work both inside and outside RStudio Server? Or I am forced to chose one over the other?
Thanks