Carnegie Mellon University, Human-Computer Interaction Institute. Copyright 2015. All Rights Reserved.
General dependencies
- R, Ant, and the Java SDK are installed on the development machine.
- Install one of Eclipse or Cygwin or both
- Install git
Downloading the example project
-
Clone the git repository:
cd /cygdrive/c/your_workspace git clone https://github.com/datashop-manager/ToolTemplate.git ToolTemplate -
Modify line 13 in source/ToolMain.java to point to the correct path for your R installation.
Eclipse
- File -> Import -> General -> Existing Projects into Workspace
- Select the root directory of the newly clone git repository (C:/your_workspace/ToolTemplate)
- Click 'Finish'
- In the Ant view (Windows -> Show View -> Ant), add the ToolTemplate's build.xml to your current buildfiles
- Double click the ant task "runToolTemplate" to test that it works
Cygwin
- Change directory to /cygdrive/c/your_workspace/ToolTemplate
- Type ant -p to get a list of ant tasks
- Type "ant runToolTemplate" to test that it works
*Note: Project tested with latest R (3.2.1), Ant 1.9.4+, and the Java EE 7 SDK