0

I can load a package through pkg <- devtools::load_all() and access the contents of the environment through pkg$env$fun_b. Assume I have fun_a that calls fun_b.

Goal: I want to overwrite fun_b with fun_b2, so that when I call fun_a it calls fun_b2.

Not working: I tried pkg$env$fun_b <- fun_b2 to no avail. fun_a() still calls fun_b()

jakob-r
  • 5,842
  • 2
  • 28
  • 44
  • 1
    Not sure if I completely understand your use case, but the solution from @Tomas might be helpful here: https://stackoverflow.com/questions/24331690/modify-package-function – Matt Sep 09 '21 at 16:08

0 Answers0