How to determine which older version of the R package is compatible with my R version

后端 未结 4 2016
时光说笑
时光说笑 2020-12-29 23:30

I am trying to install the \"tm\" package but then I get an error saying that \"tm\" is not available for my R version

package ‘tm’ is not available (for R v         


        
4条回答
  •  不思量自难忘°
    2020-12-30 00:19

    You can use the METACRAN mirror:

    Go to the blame page of the DESCRIPTION file of the package you're interested in.

    E.g. for tm: https://github.com/cran/tm/blame/master/DESCRIPTION

    Find the Depends line and click as many times as needed on the View blame prior to this change icon, until an old enough R version is displayed.

    If you want to automate that, it may be better to use crandb (also from METACRAN).

    Side note: sometimes package authors list R (≥ x.y.z) as a dependency just to be safe because they use version x.y.z and didn't do any tests with previous versions.

提交回复
热议问题