Statistics
| Revision:

root / tmp / org.txm.groovy.core / src / groovy / org / txm / test / HelloWorldR.groovy @ 966

History | View | Annotate | Download (1.3 kB)

1 321 mdecorde
package org.txm.test;
2 321 mdecorde
3 321 mdecorde
/**
4 321 mdecorde
 *
5 321 mdecorde
Main.
6 321 mdecorde
 *
7 321 mdecorde
 * @param args the args
8 321 mdecorde
 */
9 321 mdecorde
// Copyright © 2010-2013 ENS de Lyon.
10 321 mdecorde
// Copyright © 2007-2010 ENS de Lyon, CNRS, INRP, University of
11 321 mdecorde
// Lyon 2, University of Franche-Comté, University of Nice
12 321 mdecorde
// Sophia Antipolis, University of Paris 3.
13 321 mdecorde
//
14 321 mdecorde
// The TXM platform is free software: you can redistribute it
15 321 mdecorde
// and/or modify it under the terms of the GNU General Public
16 321 mdecorde
// License as published by the Free Software Foundation,
17 321 mdecorde
// either version 2 of the License, or (at your option) any
18 321 mdecorde
// later version.
19 321 mdecorde
//
20 321 mdecorde
// The TXM platform is distributed in the hope that it will be
21 321 mdecorde
// useful, but WITHOUT ANY WARRANTY; without even the implied
22 321 mdecorde
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
23 321 mdecorde
// PURPOSE. See the GNU General Public License for more
24 321 mdecorde
// details.
25 321 mdecorde
//
26 321 mdecorde
// You should have received a copy of the GNU General
27 321 mdecorde
// Public License along with the TXM platform. If not, see
28 321 mdecorde
// http://www.gnu.org/licenses.
29 321 mdecorde
//
30 321 mdecorde
//
31 321 mdecorde
//
32 321 mdecorde
// $LastChangedDate:$
33 321 mdecorde
// $LastChangedRevision:$
34 321 mdecorde
// $LastChangedBy:$
35 321 mdecorde
//
36 479 mdecorde
import org.txm.statsengine.r.core.RWorkspace
37 321 mdecorde
38 321 mdecorde
// TODO: Auto-generated Javadoc
39 321 mdecorde
/* (non-Javadoc)
40 321 mdecorde
 * @see groovy.lang.Script#run()
41 321 mdecorde
 */
42 321 mdecorde
def r = RWorkspace.getRWorkspaceInstance()         // get the R connection
43 321 mdecorde
44 321 mdecorde
r.setLog(true)                                                                // start R logging
45 321 mdecorde
46 321 mdecorde
r.eval("print(\"Hello World!\")")                        // do it
47 321 mdecorde
48 321 mdecorde
r.setLog(false)                                                         // stop R log