install.packages()与setwd()有问题

时间:2019-01-09 17:09:32

标签: r package install

我正在尝试在R(Linux(64位)上的v3.4)上安装软件包,并被告知执行暂停。

我试图注销R并清除我的历史记录和环境。以下是鳕鱼和我得到的输出:

> install.packages('zip')
Installing package into ‘/home/clang/R/x86_64-redhat-linux-gnu-library/3.4’ (as ‘lib’ is
unspecified) trying URL
'http://cran.rstudio.com/src/contrib/zip_1.0.0.tar.gz' Content type
'application/x-gzip' length 60823 bytes (59 KB)
================================================== downloaded 59 KB

Error: 1:7: unexpected '/' 1: setwd(/
          ^ Execution halted Warning in install.packages :   installation of package ‘zip’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpaFlNP9/downloaded_packages’

0 个答案:

没有答案