readTabular() 函数在最新版本的 tm 中消失了。我们用什么来代替它?

The readTabular() function is gone in the newest version of tm. What do we use as its replacement?

tm 版本 0.7-1 中,有一个 readTabular() 函数。现在它消失了,如果您尝试使用它,则不会出现弃用消息或警告或任何内容,就像您合理期望的那样。它就这样消失了。在遥远的过去(4天前),它可以这样使用:

library(tm)

myReader <- tm::readTabular(mapping=list(id="id", content="content"))
cor <- tm::VCorpus(tm::DataframeSource(dt), readerControl = list(reader = myReader))

那么如何在最新版本的 tm、0.7-2 中做类似的事情?

PS:我认为最新版本是大约 4 天前发布的 post,但很难从 news section of the repo 看出,它似乎有一个令人讨厌的格式错误或其他东西。 另外,我认为 readTabular was introduced in 2009 as 'experimental'. No idea why it was removed, if anyone can find any explanation anywhere in the repo, please post the link. Here's the docs for readTabular.

根据 CRAN 上的 "news for package tm" (https://cran.r-project.org/web/packages/tm/news.html):

readTabular() 已被删除。请改用 DataframeSource。