Creates an Executable Shortcut for Shiny Applications

Provides function shinyShortcut() that, when given the base directory of a shiny application, will produce an executable file that runs the shiny app directly in the user's default browser. Tested on both windows and unix machines. Inspired by and borrowing from <>.

Travis Build Status AppVeyor Build Status codecov


This package allows users to create a shortcut for their shiny app that, when run, will launch the app directly in the user's default browser. No need to navigate to the correct working directory in R (or even to open R at all!). Simply run the shortcut and the app will fire up. Works for both windows and linux based systems.

Inspired by this blog post by Mark Sellors at Mango Solutions.


# install.packages("devtools")


The package loads just a single function, also named shinyShortcut(). It takes three arguments:

  • shinyDirectory: The home directory of your shiny app (that contains your server.r, ui.r, or app.r files).
  • OS: The operating system for the app to be ran on, must be "windows" or "unix".
  • gitIgnore: Whether to update the .gitignore file to prevent the shortcut files being tracked by git.

The function writes an exectuable script (.vbs on windows and .desktop on unix) in to the app's home directory. Shortcuts to this file can then be created elsewhere on the user's system. The function also creates a new directory /.shiny_run into which is written the raw batch or bash script (Windows and unix respectively) that runs the shiny app.

When the shinyDirectory is the current working directory then the default arguments are sufficient.



shinyShortcut 0.1.0

  • First submission of package, containing single shinyShortcut function.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.0 by Ewan Keith, 2 years ago

Browse source code at

Authors: Ewan Keith [aut, cre]

Documentation:   PDF Manual  

GPL (>= 3) | file LICENSE license

Suggests testthat, covr

See at CRAN