I would like to modify the "ace" function of the "ape" package according to the author's suggestion. I wrote the modified function to "ace2.r" and want to replace the standard "ace" function from the package by my function (seen here: How to edit and debug R library sources):
insertSource("ace2.r", package= "ape", functions="ace")
but I get
Warning message:
In insertSource("ace2.r", package = "ape", functions = "ace"): cannot insert these (not found in source): "ace"
I checked ?insertSource but I don't get what should be given for "functions"