【问题标题】:How to remove NA from deprecate_stop() message如何从 deprecate_stop() 消息中删除 NA
【发布时间】:2020-03-19 01:22:17
【问题描述】:

当我从 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后我不清楚。

【问题讨论】:

    标签: r rlang


    【解决方案1】:

    如果您指定包名称deprecate_stop("1.0.0", "mypckg::foo()")NA 将替换为该命名空间。

    【讨论】:

      猜你喜欢
      • 2014-06-07
      • 1970-01-01
      • 2016-09-21
      • 2021-06-12
      • 2019-12-27
      • 1970-01-01
      • 2012-03-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多