I accidentally rewritten the which() function from the base package to R with my own code. I need the default source function which() really bad, but I made a mistake in saving my workspace (R Console) with a new (my own) definition of which() function (which ironically uses the original which() function in it), so now which does not work at all. How do I return the default value of which() back? Is there a way to find the source code for which( ) function?
source share