~showard314/ubuntu/karmic/r-base/remove_start_comments

« back to all changes in this revision

Viewing changes to doc/manual/R-exts.c

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-01-19 12:40:24 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090119124024-abxsf4e0y7713w9m
Tags: 2.8.1-2
debian/control: Add another Build-Depends: exclusion for the 
'kfreebsd-i386 kfreebsd-amd64 hurd-i386' architecture to openjdk-6-jdk.
Thanks to Petr Salinger for the heads-up.               (Closes: 512324)

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
    int i, n = length(list);
206
206
    SEXP ans;
207
207
 
208
 
    if(!isNewList(list)) error("`list' must be a list");
209
 
    if(!isEnvironment(rho)) error("`rho' should be an environment");
 
208
    if(!isNewList(list)) error("'list' must be a list");
 
209
    if(!isEnvironment(rho)) error("'rho' should be an environment");
210
210
    PROTECT(ans = allocVector(VECSXP, n));
211
211
    for(i = 0; i < n; i++) {
212
212
        defineVar(install("x"), VECTOR_ELT(list, i), rho);
222
222
    int i, n = length(list);
223
223
    SEXP R_fcall, ans;
224
224
 
225
 
    if(!isNewList(list)) error("`list' must be a list");
226
 
    if(!isFunction(fn)) error("`fn' must be a function");
227
 
    if(!isEnvironment(rho)) error("`rho' should be an environment");
 
225
    if(!isNewList(list)) error("'list' must be a list");
 
226
    if(!isFunction(fn)) error("'fn' must be a function");
 
227
    if(!isEnvironment(rho)) error("'rho' should be an environment");
228
228
    PROTECT(R_fcall = lang2(fn, R_NilValue));
229
229
    PROTECT(ans = allocVector(VECSXP, n));
230
230
    for(i = 0; i < n; i++) {