I have packaged a Shiny application as a Windows desktop App by following the following tutorial: http://www.r-bloggers.com/deploying-desktop-apps-with-r/
In my Shiny application I provide the user to generate a PDF Report using pandoc and MikTex. In order for this to work in my Desktop application, I have added the following code in my runShinyApp.R script.
Sys.setenv(PATH=paste("C:/Users/WoBa/Documents/dist/pandoc",sep=";",
"C:/Users/WoBa/Documents/dist/miktex/miktex/bin/"))
Although this works correctly, I would like this path to be relative so the application can be distributed to other users without them having to change the path.
I've tried the following - but this didn't work:
Sys.setenv(PATH=paste("./pandoc",sep=";",
"./miktex/miktex/bin/"))
Folder structure is the following:
dist/
+ GoogleChromePortable
+ miktex
+ pandoc
+ R-Portable
+ runShinyApp.R
+ run.bat
Anybody maybe nows how to make this path relative? (on Windows) It would help me a lot!