You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run roxygen2::roxygenize() using version 6.1.1, this creates a NAMESPACE file containing the line
export(foo)
as expected. However, using version 7.0.2, I get a warning:
Warning: [/Users/david/packagefileprob/R/hello.R:1] @evalNamespace failed with error:
invalid 'envir' argument of type 'closure'
and the line is not written in NAMESPACE.
The error appears to be that in roxy_tag_eval, env is not being passed, and is instead being taken to be rlang::env. The original cause seems to be this line in roclet_preprocess.roclet_namespace:
In hello.R:
If I run
roxygen2::roxygenize()
using version 6.1.1, this creates a NAMESPACE file containing the lineexport(foo)
as expected. However, using version 7.0.2, I get a warning:
and the line is not written in NAMESPACE.
The error appears to be that in
roxy_tag_eval
,env
is not being passed, and is instead being taken to berlang::env
. The original cause seems to be this line inroclet_preprocess.roclet_namespace
:which refers to a not locally defined
env
variable.The text was updated successfully, but these errors were encountered: