jpcaveiro / rmdmoodle

rmdmoodle
MIT License
0 stars 0 forks source link

make a R package a standalone app #50

Open jpcaveiro opened 2 months ago

jpcaveiro commented 2 months ago

Creating a standalone application from an R package involves bundling the code and dependencies into a format that runs without a separate R installation. Here are two common approaches:

  1. R Portable with Installer:

    • R Portable: This framework provides a lightweight version of R that can be included with your app. Tools like renv can help manage package dependencies within the portable R environment.
    • Installer: Packages like RInno allow you to create an installer that bundles your R code, the portable R instance, and any additional resources into a single executable file (.exe for Windows). This simplifies deployment as users only need to run the installer.
  2. Electron with R:

    • Electron: This framework allows building desktop applications using web technologies like HTML, CSS, and JavaScript. You can embed an R process within your Electron app and leverage R functionalities through API calls. This approach offers more flexibility for building user interfaces but has a steeper learning curve.

Here are some additional points to consider:

For detailed instructions and code examples, you can search for tutorials on "R portable with installer" or "Electron with R".