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()