소스 검색

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;
 
 /*
- 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)