-
The two main R files are
app.R
andmain_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:
-
Run
python Dig\tab-src\surrogate-modeling\build.py
-
Add a registry entry to note location of this repository:
add_reg_path.cmd
Run tests:
-
Install Microsoft Visual Studio.
-
Open
DigTest/DigTest.sln
in Visual Studio. -
Run Debug > Start Debugging.
Alternatively, you can:
-
Push your local changes to the openmeta-visualizer GitHub repository.
-
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>
).
To create a new release of the Visualizer:
-
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. -
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. -
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