The R Project SVN R

Rev

Rev 59267 | Rev 60667 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59267 Rev 60473
Line 264... Line 264...
264
SEXP attribute_hidden do_contourLines(SEXP call, SEXP op, SEXP args, SEXP env)
264
SEXP attribute_hidden do_contourLines(SEXP call, SEXP op, SEXP args, SEXP env)
265
{
265
{
266
    SEXP c, x, y, z;
266
    SEXP c, x, y, z;
267
    int nx, ny, nc;
267
    int nx, ny, nc;
268
 
268
 
269
    x = CAR(args);
-
 
270
    internalTypeCheck(call, x, REALSXP);
269
    x = PROTECT(coerceVector(CAR(args), REALSXP));
271
    nx = LENGTH(x);
270
    nx = LENGTH(x);
272
    args = CDR(args);
271
    args = CDR(args);
273
 
272
 
274
    y = CAR(args);
-
 
275
    internalTypeCheck(call, y, REALSXP);
273
    y = PROTECT(coerceVector(CAR(args), REALSXP));
276
    ny = LENGTH(y);
274
    ny = LENGTH(y);
277
    args = CDR(args);
275
    args = CDR(args);
278
 
276
 
279
    z = CAR(args);
-
 
280
    internalTypeCheck(call, z, REALSXP);
277
    z = PROTECT(coerceVector(CAR(args), REALSXP));
281
    args = CDR(args);
278
    args = CDR(args);
282
 
279
 
283
    /* levels */
280
    /* levels */
284
    c = CAR(args);
-
 
285
    internalTypeCheck(call, c, REALSXP);
281
    c = PROTECT(coerceVector(CAR(args), REALSXP));
286
    nc = LENGTH(c);
282
    nc = LENGTH(c);
287
    args = CDR(args);
283
    args = CDR(args);
288
 
284
 
289
    return GEcontourLines(REAL(x), nx, REAL(y), ny, REAL(z), REAL(c), nc);
285
    SEXP res = GEcontourLines(REAL(x), nx, REAL(y), ny, REAL(z), REAL(c), nc);
-
 
286
    UNPROTECT(4);
-
 
287
    return res;
290
}
288
}