Browse Source

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 years ago
parent
commit
17dce2b4fa
1 changed files with 3 additions and 3 deletions
  1. 3 3
      initfiles/examples/embed/R-simple.ecl

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

@@ -1,10 +1,10 @@
 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)
 VAL+1
@@ -110,7 +110,7 @@ ENDEMBED;
 // returning a record
 
 mtcarsrec testRecordOut() := EMBED(R)
-mtcars[t,];
+mtcars[1,];
 ENDEMBED;
 
 mtcarsrec testRecordOut2() := EMBED(R)