Can I edit the NAMESPACE file without rebuilding the package?

I've got an existing package in my library, but when the package was built one function was omitted from the export commands in the NAMESPACE file. I was hoping that I could simply add another line to the file but it appears that the namespace definitions, despite being in a text file, are 'baked in' to the package at build time. I've tried both adding and removing export commands but the loaded namespace list doesn't change.
I've made sure to detach and unload the package in question, then restart R (3.3.1) clean.
So, do I have to rebuild, or am I missing some simple step?

(for those wondering, I did rebuild the package w/ the new namespace commands, and it worked).


As Ben Bolker suggested, the answer (Bettridge's Law wins again!) is "no." Despite the existence of an editable text file in a package's tarball, the export list is read from one of the binaries ('foo.rdb' or 'foo.rdx' is my guess) and cannot be changed without rebuilding the package.

链接地址: http://www.djcxy.com/p/25020.html

上一篇: 无法安装xkcd字体

下一篇: 我可以在不重建包的情况下编辑NAMESPACE文件吗?