我正在尝试将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
有什么想法吗?
由于
答案 0 :(得分:1)
使用type = "source"
install.packages("~/Downloads/SDSFoundations_1.1_R_x86_64-apple-darwin10.8.0.tar", repos = NULL, type = 'source')