Преглед изворни кода

HPCC-20201 Supplied example R-simple.ecl does not compile

Looks like it was copied and cleaned up from one of the regression tests, but
not tested after the cleanup.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman пре 6 година
родитељ
комит
17dce2b4fa
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      initfiles/examples/embed/R-simple.ecl

+ 3 - 3
initfiles/examples/embed/R-simple.ecl

@@ -1,10 +1,10 @@
 IMPORT R;
 IMPORT R;
 
 
 /*
 /*
- This example illustrates and tests the use of embedded JavaScript
+ This example illustrates and tests the use of embedded R
  */
  */
 
 
-// Scalar parameters and resuls
+// Scalar parameters and results
 
 
 integer add1(integer VAL) := EMBED(R)
 integer add1(integer VAL) := EMBED(R)
 VAL+1
 VAL+1
@@ -110,7 +110,7 @@ ENDEMBED;
 // returning a record
 // returning a record
 
 
 mtcarsrec testRecordOut() := EMBED(R)
 mtcarsrec testRecordOut() := EMBED(R)
-mtcars[t,];
+mtcars[1,];
 ENDEMBED;
 ENDEMBED;
 
 
 mtcarsrec testRecordOut2() := EMBED(R)
 mtcarsrec testRecordOut2() := EMBED(R)