Skip to content

metamorph-inc/openmeta-visualizer

Repository files navigation

Build status

OpenMETA Visualizer

Table of Contents

Development

Edit Code

  • The two main R files are app.R and main_server.R.

  • Also, each Visualizer tab has its own separate R file - located in the Dig\tabs\ directory.

  • While you can use any text editor to modify source files, RStudio is the recommended development tool.

Build & Test (local)

Build:

  1. Run python Dig\tab-src\surrogate-modeling\build.py

  2. Add a registry entry to note location of this repository: add_reg_path.cmd

Run tests:

  1. Install Microsoft Visual Studio.

  2. Open DigTest/DigTest.sln in Visual Studio.

  3. Run Debug > Start Debugging.

Build & Test (remote)

Alternatively, you can:

  1. Push your local changes to the openmeta-visualizer GitHub repository.

  2. Doing so will automatically trigger AppVeyor job, which will build the Visualizer, run the tests, and also create a Windows installer.

Note 1: Building and testing remotely via AppVeyor is generally much slower than building and testing locally.

Note 2: Be especially sure to create a new development branch. You can squash merge your final changes to master (git merge --squash <devel-branch-name>).

Create a New Release

To create a new release of the Visualizer:

  1. First make sure your changes pass all tests by running them locally using the DigTest/DigTest.sln project or pushing the changes without a tag and letting AppVeyor build them. If you are running the tests locally, you will need to set your screen resolution to 1024x768 for the tests to run properly.

  2. Update the version and release date information in the "About" section of the Visualizer. This can be done by modifying the code at the bottom of the main_server.R file. Commit and push this change.

  3. Create an annotate tag with the new version number, add a meaningful tag message, and push the tag.

    git tag -a vX.Y.Z
    git push origin vX.Y.Z

Additional Resources

R

R Shiny

D3