Skip to content
Prev 51212 / 63424 Next

Changed behaviour when passing a function?

Sorry guys, I've been my stupid self again.  Indeed, I had been playing
around and had a FUN in my global environment. I've checked my history and
what I actually did, was this:

FUN <- round
myfun <- function(x, FUN, ...){
  FUN(x, ...)
}
round <- 2
myfun(0.85, FUN = round, digits=1)

And then everything works as I would expect. Moral of the story: don't post
on r-devel on a caffein detox.

Cheers and thanks for being so patient

On Thu, Oct 22, 2015 at 11:44 PM, Gabriel Becker <gmbecker at ucdavis.edu>
wrote: