Search code examples
rpdfr-markdownknitrbookdown

bookdown/rmarkdown/knitr: links from PDF to local files and windows/OSX


My bookdown report knitted to PDF tries to link to the underlying results like so

[This](./somedir/.) directory contains some data.

or so

[This file](./somedir/specific_data.txt) contains something more specific.

On (Arch)Linux using okular (my devel environment) all of this just works fine (file manager opens for the first, MIME type defined application for the second link), but on MS Windows and OSX Acrobat Reader asks whether to follow that link and after allowing to do so, the only thing that happens is that the dialog window disappears ...

Is what I want generally impossible on those platforms or am I doing something wrong?

Thanks, Joh


Solution

  • I found the solution:

    [This](run:somedirrelativetothedocument/.) directory contains some data.
    
    [This file](run:somedirrelativetothedocument/specific_data.txt) contains something more specific.