Local changes to the `NAMESPACE` file are reflected only after package is installed. To reproduce: ``` sj pkgname="lintr.namespace.test" rm -rf $pkgname Rscript -e "devtools::create('$pkgname')" Rscript -e "devtools::install('$pkgname')" echo "a <- function() {" > $pkgname/R/a.R echo " llply" >> $pkgname/R/a.R echo "}" >> $pkgname/R/a.R echo "importFrom(plyr,llply)" > $pkgname/NAMESPACE # Uncomment line below to fix error #Rscript -e "devtools::install('$pkgname')" Rscript -e "lintr::lint_package('$pkgname')" ``` An equivalent R script didn't exhibit the same error, so this one might be difficult to test automatically.