r - 找出函数是在哪个版本的 R 中引入的

标签 r

有没有办法找出 R 的哪个版本引入了某些功能?例如 regmatches 是一个有用的功能,但它是相当新的,我相信它是在 2.14 中引入的。我怎样才能轻松地找出 R 2.14 中引入了诸如 regmatches 之类的东西?

最佳答案

比 Dirk 的解决方案更简单的是使用 R 的 news功能:

> newsDB <- news()
> news(grepl("regmatches",Text), db=newsDB)
Changes in version 2.14.0:

NEW FEATURES

    o   New function regmatches() for extracting or replacing matched or
         non-matched substrings from match data obtained by regexpr(),
         gregexpr() and regexec().

从 R-3.3.0 开始,news将通过 HTML 帮助系统启动(如果可用)。您可以通过 print.news_db 抑制它方法:
> print(news(grepl("news",Text), db=newsDB), doBrowse=FALSE)
Changes in version 3.3.0:

NEW FEATURES

    o   news() now displays R and package news files within the HTML help
         system if it is available.  If no news file is found, a visible
         NULL is returned to the console.

关于r - 找出函数是在哪个版本的 R 中引入的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10111420/

相关文章:

重新索引和填充 R 数据帧

r - 如何在集群内集群

r - 在目录中导入最新的 csv 文件

r - 如何在不重新加载所有内容的情况下突出显示带有 Shiny 刻面的ggplot上的点?

r - 透明符号、实线、格子::xyplot()

r - 如何使用 Roxygen2 在没有通用别名的情况下添加特定于类的别名?

r - 如何使 'head'自动应用于输出?

r - 使用 lapply 和 get 时的 data.table 列顺序

reshape - 防止分类变量在列上重复

R ggplot2 : geom_text error (object not found). .. aes() 冲突?