Skip to content
Prev 30858 / 63421 Next

"could not find function" error in "R CMD check"

On 16/12/2008 10:55 AM, Spencer Graves wrote:
I would guess that you are calling it from within your *.R files.  It's 
called from a lot of places, so I couldn't spot the one that's causing 
the trouble, but something like this could do it:

f <- function() { }  # Function is done, by mistake

   basisfd()          # This is a top level call, not within f

}                    # Not sure why the parser wouldn't see this
                      # so this guess may be wrong

In general, you can call functions from within the *.R files, but you 
have to be careful to make sure they are already defined (and you 
shouldn't count on any side effects from them.

Duncan Murdoch