Re: [R] Evaluation conflict in combination of replicate() and rexp()as variable inside a function

2008-05-24 Thread Prof Brian Ripley
Don't use replicate() like this. You have '...' in your *expression*, and it really should only be used in the body of a function. But if you want to understand why debug(rexp) rdistr - function(distr, ...) replicate(1, distr(n = 1, ...)) rdistr(rexp) debugging in: distr(n = 1, ...) debug:

[R] Evaluation conflict in combination of replicate() and rexp()as variable inside a function

2008-05-23 Thread Gerrit Eichner
Dear userRs, playing around with combinations of replicate() and random number generating functions inside a self-defined wrapper function I encounterd a puzzling behaviour. The following are intentionally simple (and rather nonsense-) examples to isolate the relevant aspects. Please, note