I stumbled uppon one problem:
temp.fun <- function() {}
as.character(temp.fun)
yields an error. I undersand, why it is not possible to “convert” a function into a character.
Question is, what properties to add to a function so that the method as.character returns a string defined by myself?
Thanks a lot!
deparsecan help:Going further with the details of your comment, what you can do is create a class that derives
functionand pass this instead of the function.So that when you pass a function to the third party package, you pass a
myFunctioninstead: