dependency ‘slam’ is not available when installing TM package

前端 未结 12 1130
盖世英雄少女心
盖世英雄少女心 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:22

    For R-version 3.2.3, following worked fine as mentioned in this link and it suggests this works for R-version 3.3.0 as well:

    #install devtools if you have not installed 
    install.packages('devtools')
    library(devtools)
    
    slam_url <- "https://cran.r-project.org/src/contrib/Archive/slam/slam_0.1-37.tar.gz"
    install_url(slam_url)
    

提交回复
热议问题