devtools::check(), fails in R Studio Check and works in the Console.
Failure:
devtools::check()
Updating cartools documentation
Writing NAMESPACE
Error in get(name, envir = env) : use of NULL environment is defunct
Calls: <Anonymous> ... block_find_object -> object_from_call -> find_data -> get
Execution halted
Exited with status 1.
Success:
devtools::check()
Duration: 38.2s
0 errors | 0 warnings | 0 notes
Background
I had no problem with this command using the R Studio Check command until I changed Author to Authors@R in the DESCRIPTION.
I have a work around that I stumbled on. Apparently, there is a bug in R Studio that should be addressed.