I've got a package that has a shiny app included. I would like to include a link in the app to open the vignette. I'd prefer to have the link directly open the user's version of the vignette (ie...I'd rather not have to maintain a copy of the vignettes online somewhere). I'm not sure the package will ever go to CRAN, so I don't want to depend on a CRAN link either (and the shiny app will only ever be run locally). I've tried this is the ui code:
vig_path <- system.file("doc", package="myPackage") HTML(paste0("<a href=\"file:///", vig_path,"/Introduction.html\">Introduction</a>"))
When copy the link location and paste it in the browser (ie, from "Inspect" via Chrome dev tools), it opens (so, the path is correct). There is an error "Not allowed to load local resource:". So, am I just out of luck, or is there a trick to open local files that I'm missing?