assignInNamespace should not be used in final code, and will in future throw an error if called from a package. Already certain uses are disallowed.
This warning has been around since 2011, apparently without any action: wch/r-source@91f910d.
I wonder if we should at least hide the call to assignInNamespace() so that it's more difficult to detect with automated checks.