2015-06-27 74 views
1

警告:無效的包 'RPostgreSQL_0.4.tar.gz' 錯誤:錯誤:沒有軟件包指定 警告消息:問題,同時下載RPostgreSQL

In install.packages("RPostgreSQL_0.4.tar.gz", lib = "/home/anirudh/Downloads/", : 
    installation of package ‘RPostgreSQL_0.4.tar.gz’ had non-zero exit status 
> 

install.packages('RPostgreSQL_0.4.tar.gz',lib='/home/anirudh/Downloads',repos=NULL

Warning: invalid package ‘RPostgreSQL_0.4.tar.gz’ 
Error: ERROR: no packages specified 
Warning message: 
In install.packages("RPostgreSQL_0.4.tar.gz", lib = "/home/anirudh/Downloads", : 
    installation of package ‘RPostgreSQL_0.4.tar.gz’ had non-zero exit status 
+0

你正在運行什麼版本的R? 32位或64位? Windows還是Linux? –

+0

你已經指定了這個方法,你試圖拖延一個本地保存的包。你是否想從CRAN安裝它(即'install.packages(「RPostgreSQL」)')? – Thomas

回答

1

試試這個:

install.packages("/home/anirudh/Downloads/RPostgreSQL_0.4.tar.gz", 
       repos = NULL, type="source")