Skip to content

Latest commit

 

History

History
60 lines (48 loc) · 2.74 KB

README.md

File metadata and controls

60 lines (48 loc) · 2.74 KB

Installation

In order to launch GAMS MIRO you need R (v. 4.0.2 or later) with the following packages installed:

MIRO will install these packages automatically when you first launch it (e.g. R -f app.R). Note that some of the required packages have been customized to work seamlessly with MIRO. These packages are automatically downloaded from the corresponding GitHub repository. The URLs where you can find these packages are given in brackets. When using certain graphs and especially in the MIRO Configuration Mode, the following additional packages are required:

MIRO will install these when it detects that they are required.

If you want to use gdx as a file exchange with GAMS (which is the default for all sample models), you will also need to install the gdxrrwMIRO package, which you can find here.

Some (optional) functions are provided by the package miro.util, which you can find here. If you do not have this package installed, fallback functions are used.

To start the application, run the following command from an R console:

shiny::runApp(launch.browser=TRUE)

or directly from the command line:

R -e "shiny::runApp(launch.browser=TRUE)"

Build Javascript/CSS

We use Node.JS, npm and webpack to lint, bundle and minify Javascript and compile Less to CSS. You can install npm from here. To install the required dependencies, run npm install from the root of the GAMS MIRO repository. To build CSS and Javascript files from the srcjs and less directories, run npm run build. This creates bundled and minified files inside the www directory. MIRO only reads these minified versions and not the source files. While you are developing you can run npm run watch to rebuild the output whenever you change one of the source files.

License

GAMS MIRO as a whole is distributed under GPL-3 (GNU GENERAL PUBLIC LICENSE version 3). See the LICENSE file for more details.