nhyris
nhyris is a minimal framework to transform an R Shiny application into a standalone desktop app.
Prerequisites
- Node.js >= 22.13.1 (LTS: 22.15)
- npm >= 11.4.1
Check your versions:
node -v
npm -vInstallation
Install nhyris globally via npm:
npm install -g nhyris
Note
Please use zsh or git-bash, not PowerShell.
Usage
- Initialize a new project (replace
myappwith your project name):
nhyris init myapp- Modify your Shiny application
- Edit your app code in
myapp/shiny/app.R
- Run your application in development mode:
nhyris run myapp- Update dependencies or project files (optional):
nhyris update myapp- Build the application into an Electron app:
nhyris build myapp- Find your packaged app in the
outdirectory.
Example: Using Shiny Gallery Templates
You can use example apps from the RStudio Shiny Gallery as templates.
For example, to initialize a project with the 001-hello template:
nhyris init 001-helloCross-platform
nhyris supports building desktop applications for multiple operating systems, including Windows, macOS, and Linux.
It leverages Electron’s cross-platform capabilities and supports various makers such as:
- ZIP (universal)
- Squirrel.Windows (Windows installer)
- DMG (macOS)
- deb (ubuntu linux)
You can configure the target platforms and makers in your project settings to generate installers or packages suitable for your users’ environments.
Made by jahnen