有没有办法找出 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/