如何在 R-3.3.0 中安装包 tm [英] How to install package tm in R-3.3.0

查看:44
本文介绍了如何在 R-3.3.0 中安装包 tm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 R-3.3.3.我尝试使用以下命令安装包 tm

I'm using R-3.3.3. I tried to install package tm using following commands

install.packages('tm',dependencies = TRUE)
library('tm')

但是我收到错误消息

loadNamespace 中的错误(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :没有名为slam"的包另外: 警告信息:包 ‘tm’ 是在 R 版本 3.3.3 下构建的错误:tm"的包或命名空间加载失败

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘slam’ In addition: Warning message: package ‘tm’ was built under R version 3.3.3 Error: package or namespace load failed for ‘tm’

我在此处看到了针对相同类型错误的两种解决方案;安装TM包时依赖'slam'不可用.我试过这两个,但我收到像

I saw two solutions for same type of error here & dependency ‘slam’ is not available when installing TM package. I tried those two but I'm getting error message like

安装失败:找不到构建 slam 所需的构建工具.

Installation failed: Could not find build tools necessary to build slam.

请告诉我如何在 R-3.3.3 中安装 tm 包

Kindly suggest me how to install tm package in R-3.3.3

推荐答案

今天遇到了同样的问题,尝试了很多方法解决后,找到了下面的命令可以安装tm包,抱歉我知道很晚了,但仍然有用.

I faced the same problem today, after testing many ways to solve it I could find the following command that can install the tm package, sorry I know it is very late but still useful.

require(devtools)
install_version("tm", version = "0.7-1", repos = "http://cran.us.r-project.org")

这篇关于如何在 R-3.3.0 中安装包 tm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆