如何从 deprecate_stop() 消息中删除 NA
How to remove NA from deprecate_stop() message
当我从 lifecycle
包中 运行 deprecate_stop
时,我在结果消息中得到不需要的 NA
:
library(lifecycle)
deprecate_stop("2.0.0", "foo()")
#> Error: `foo()` was deprecated in <NA> 2.0.0 and is now defunct.
我怎样才能删除那个 NA?看完后我不清楚 ?deprecate_stop
.
如果您指定包名称 deprecate_stop("1.0.0", "mypckg::foo()")
,NA
将替换为该命名空间。
当我从 lifecycle
包中 运行 deprecate_stop
时,我在结果消息中得到不需要的 NA
:
library(lifecycle)
deprecate_stop("2.0.0", "foo()")
#> Error: `foo()` was deprecated in <NA> 2.0.0 and is now defunct.
我怎样才能删除那个 NA?看完后我不清楚 ?deprecate_stop
.
如果您指定包名称 deprecate_stop("1.0.0", "mypckg::foo()")
,NA
将替换为该命名空间。