I have inadvertently over-ridden the package I created with a different function, saved it, and closed R Studio. Now, my R package contains an unintended function.
Thankfully, I did not install the package, so I still have the old package contents stored in my computer.
Is there a way to extract the function from the installed package? It's one long function. Not more than one function.
And, no, I do not have a backup, at least not the updated version.
functionBody()also works (most of the times)..RDatafile when you start a new R session. Tryrm(name_of_function)and see if you can use the package version afterwards.