Modify a function in a retired package

Hello, I'm using a function from an existing but retired package, thus I don't expect the author of the package to update it. Currently what I do is:

  1. fork the package from the author's GitHub to my Github;
  2. modify the source code in my GitHub;
  3. (need to restart the R session)?
  4. re-install the package from my GitHub;
  5. use the modified function.

I was wondering, is there a convenient way to complete the whole process?

Many thanks for your guidance.

That should work. Have you tried it?

Yes. Sorry, this procedure indeed works.

I'd like to know whether there are other convenient ways to modify the functions from existing packages. I remember a blog using other methods, but I didn't understand it at that time and can't find it anymore.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.