dependency ‘slam’ is not available when installing TM package

前端 未结 12 1122
盖世英雄少女心
盖世英雄少女心 2020-12-05 05:02

I was able to use the library(tm) in r without problem until today, when loading tm shows:

library(tm)
12条回答
  •  春和景丽
    2020-12-05 05:32

    I had the same problem as you.
    Slam "Depends: R (≥ 3.3.1)", this why I had to perform the following actions to successfully install and load "tm" package:

    1. Update R from 3.2.5 to the latest version 3.3.2
    2. install.packages("tm")
      also installing the dependencies ‘NLP’, ‘slam’ package ‘NLP’ successfully unpacked and MD5 sums checked package ‘slam’ successfully unpacked and MD5 sums checked package ‘tm’ successfully unpacked and MD5 sums checked

    3. library(tm)

提交回复
热议问题