Re: [Rd] Evaluating R expressions

2008-01-04 Thread Terry Therneau
All, Thank you for the prompt and useful answers to my questions. I had missed references in 5.7.6 which would have answered some of the points. As Bill pointed out a newer version of acrobat would help, but the Sun system here is still running 5.0. (An oversubscribed sysadmin). Then I

Re: [Rd] Evaluating R expressions from C

2008-01-04 Thread Robert Gentleman
Hi Terry, Terry Therneau wrote: > I am currently puzzled by a passage in the R Extensions manual, section 5.10: > > SEXP lapply(SEXP list, SEXP expr, SEXP rho) > { >R_len_t i, n = length(list); >SEXP ans; > >if(!isNewList(list)) error("`list' must be a list"); >

[Rd] Evaluating R expressions from C

2008-01-04 Thread Terry Therneau
I am currently puzzled by a passage in the R Extensions manual, section 5.10: SEXP lapply(SEXP list, SEXP expr, SEXP rho) { R_len_t i, n = length(list); SEXP ans; if(!isNewList(list)) error("`list' must be a list"); if(!isEnvironment(rho)) error("`rho' should