【发布时间】:2016-02-02 23:14:31
【问题描述】:
我正在尝试将 SDSFoundations 包安装到 Mac 的 R Studio 中,但出现错误。
install.packages("~/Downloads/SDSFoundations_1.3.tar", repos = NULL)
Error in install.packages : type == "both" cannot be used with 'repos = NULL'
我也尝试了以下方法:
install.packages("~/Downloads/SDSFoundations_1.3.tar", repos = NULL, type ='binary')
tar: Failed to set default locale
有什么想法吗?
谢谢
【问题讨论】:
-
尝试使用
type = 'source'而不是type = 'binary或(默认)type = 'both'。 -
谢谢!!!这很好用!