Przeglądaj źródła

Merge pull request #11596 from richardkchapman/R-example

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

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 6 lat temu
rodzic
commit
5dd51701ea
1 zmienionych plików z 3 dodań i 3 usunięć
  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)