Reputation: 1013
I am creating an install package for a Shiny app. I selected the include_R = TRUE
option which bundle R with the installer. Everything is working OK except that R is installed automatically in a location different than the one that I need. How can I change this behavior?
Upvotes: 1
Views: 247
Reputation: 1843
You can change that behavior using the R_flags
argument of run
or create_app
. For example, if you want to install R in each user's documents folder:
create_app(
app_name = "myapp",
app_dir = "app",
R_flags = '/SILENT /DIR=""{userdocs}""')
In this example, I've combined Inno Setup constants with R_flags. You can replace the Inno Setup constant, {userdocs}
, with a full path or combine the two, i.e. ""{userdocs}\\R""
For more information, see ?run
(soon to be renamed run_section
in RInno 0.2.0 because of namespace conflicts).
Upvotes: 1