install.packages 中的错误:type ==“both"不能与“repos =NULL"一起使用 [英] Error in install.packages : type =="both" cannot be used with 'repos =NULL'

查看:39
本文介绍了install.packages 中的错误:type ==“both"不能与“repos =NULL"一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上我正在尝试离线安装软件包.我有 R 工作室.我所做的是基于先前提出的问题如下:

Actually I am trying to install packages offline. I have R studio. what I do is based on previously asked question as follows:

install.packages(C:/Users/Desktop/class_7.3-12.zip", repos = NULL)

我收到标题中提到的错误.有人给我建议吗?

I get the error I mentioned in the title. is someone out there to give me an advice ?

谢谢

推荐答案

您可以从源代码或二进制文件安装包.在包档案"中您可能会阅读的文档部分:

You can install packages from source or binaries. In the "Package Archives" section of the documentation you may read:

包源class_7.3-12.tar.gz

Package Source class_7.3-12.tar.gz

Windows 二进制类_7.3-12.zip

Windows Binary class_7.3-12.zip

(32 位和 64 位)Mac OS X 10.9(小牛队)class_7.3-12.tgz

(32- & 64-bit) Mac OS X 10.9 (Mavericks) class_7.3-12.tgz

从二进制安装时(似乎是你的情况):

When installing from binary (as it seems to be your case):

install.packages("class_7.3-12.zip", repos = NULL, type="binary")

否则,从源安装时:

install.packages("class_7.3-12.tar.gz", repos = NULL, type="source")

这篇关于install.packages 中的错误:type ==“both"不能与“repos =NULL"一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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