For a quick testing you can use the trace
function with edit=TRUE
to modify the function, this will do the replacing in the proper namespace and also allow you to use untrace
to revert the function back to the original. These changes will not last beyond the current session.