it is possible this package could help you with this task
It will look for function calls and try to add the prefix to generate pkg::fun
form. Take care as it will modify your script.
This other one offers the same in its pretty_*
functions
They both have RStudio addins.
Hope it helps