我需要使用R版本3.3.3。有没有成功安装软件包的方法?我无法安装任何软件包

时间:2019-01-10 20:03:11

标签: r

我需要将R 3.3.3用于SPSS Modeler 18.1。我无法在此版本的R中安装任何软件包。

我有一个R 3.5.1版本,并已成功地与RStudio一起使用。我需要将R 3.3.3用于SPSS Modeler 18.1。我无法安装任何软件包。我尝试过update.packages(),使用type =“ source”或“ both”进行install.packages,尝试了devtools,但也无法安装devtools。我相信,binds_compilation存在二进制和源不匹配的问题,但是似乎无法弄清楚如何解决它。我通常会想到的每一个软件包都在发生这种情况:dplyr,tidyverse,ggplot2,预测等。

install.packages('dplyr')
library('dplyr')
install.packages('pillar')
install.packages('devtools')

> install.packages('dplyr')
also installing the dependency ‘rlang’


  There are binary versions available but the source versions are later:
      binary source needs_compilation
rlang  0.2.0  0.3.1              TRUE
dplyr  0.7.4  0.7.8              TRUE

  Binaries will be installed
trying URL 'https://cran.mtu.edu/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB

trying URL 'https://cran.mtu.edu/bin/windows/contrib/3.3/dplyr_0.7.4.zip'
Content type 'application/zip' length 2897358 bytes (2.8 MB)
downloaded 2.8 MB

package ‘rlang’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘rlang’
package ‘dplyr’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘dplyr’

The downloaded binary packages are in
        C:\Users\nipa.onulak\AppData\Local\Temp\Rtmpcbgyh7\downloaded_packages
> library('dplyr')
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘pillar’
Error: package or namespace load failed for ‘dplyr’
> install.packages('pillar')
also installing the dependencies ‘fansi’, ‘rlang’


  There are binary versions available but the source versions are later:
       binary source needs_compilation
fansi   0.2.2  0.4.0              TRUE
rlang   0.2.0  0.3.1              TRUE
pillar  1.2.1  1.3.1             FALSE

  Binaries will be installed
trying URL 'https://cran.mtu.edu/bin/windows/contrib/3.3/fansi_0.2.2.zip'
Content type 'application/zip' length 141745 bytes (138 KB)
downloaded 138 KB

trying URL 'https://cran.mtu.edu/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB

package ‘fansi’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘rlang’

The downloaded binary packages are in
        C:\Users\nipa.onulak\AppData\Local\Temp\Rtmpcbgyh7\downloaded_packages
installing the source package ‘pillar’

trying URL 'https://cran.mtu.edu/src/contrib/pillar_1.3.1.tar.gz'
Content type 'application/x-gzip' length 103972 bytes (101 KB)
downloaded 101 KB

ERROR: dependency 'rlang' is not available for package 'pillar'
* removing 'C:/Program Files/R/R-3.3.3/library/pillar'

The downloaded source packages are in
        ‘C:\Users\nipa.onulak\AppData\Local\Temp\Rtmpcbgyh7\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.3\library" C:\Users\NIPA~1.ONU\AppData\Local\Temp\Rtmpcbgyh7/downloaded_packages/pillar_1.3.1.tar.gz' had status 1 
2: In install.packages("pillar") :
  installation of package ‘pillar’ had non-zero exit status
> install.packages('devtools')
also installing the dependencies ‘git2r’, ‘pkgbuild’, ‘pkgload’, ‘rcmdcheck’


  There are binary versions available but the source versions are later:
          binary source needs_compilation
git2r     0.21.0 0.24.0              TRUE
rcmdcheck  1.2.1  1.3.2             FALSE
devtools  1.13.5  2.0.1             FALSE

  Binaries will be installed
Package which is only available in source form, and may need
  compilation of C/C++/Fortran: ‘pkgload’
  These will not be installed
trying URL 'https://cran.mtu.edu/bin/windows/contrib/3.3/git2r_0.21.0.zip'
Content type 'application/zip' length 3022652 bytes (2.9 MB)
downloaded 2.9 MB

package ‘git2r’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\Users\nipa.onulak\AppData\Local\Temp\Rtmpcbgyh7\downloaded_packages
installing the source packages ‘pkgbuild’, ‘rcmdcheck’, ‘devtools’

trying URL 'https://cran.mtu.edu/src/contrib/pkgbuild_1.0.2.tar.gz'
Content type 'application/x-gzip' length 25264 bytes (24 KB)
downloaded 24 KB

trying URL 'https://cran.mtu.edu/src/contrib/rcmdcheck_1.3.2.tar.gz'
Content type 'application/x-gzip' length 1408582 bytes (1.3 MB)
downloaded 1.3 MB

trying URL 'https://cran.mtu.edu/src/contrib/devtools_2.0.1.tar.gz'
Content type 'application/x-gzip' length 388953 bytes (379 KB)
downloaded 379 KB

* installing *source* package 'pkgbuild' ...
** package 'pkgbuild' successfully unpacked and MD5 sums checked
** R
** preparing package for lazy loading
Error : .onLoad failed in loadNamespace() for 'callr', details:
  call: loadNamespace(name)
  error: there is no package called 'debugme'
ERROR: lazy loading failed for package 'pkgbuild'
* removing 'C:/Program Files/R/R-3.3.3/library/pkgbuild'
ERROR: dependency 'pkgbuild' is not available for package 'rcmdcheck'
* removing 'C:/Program Files/R/R-3.3.3/library/rcmdcheck'
ERROR: dependencies 'pkgbuild', 'pkgload', 'rcmdcheck' are not available for package 'devtools'
* removing 'C:/Program Files/R/R-3.3.3/library/devtools'

The downloaded source packages are in
        ‘C:\Users\nipa.onulak\AppData\Local\Temp\Rtmpcbgyh7\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.3\library" C:\Users\NIPA~1.ONU\AppData\Local\Temp\Rtmpcbgyh7/downloaded_packages/pkgbuild_1.0.2.tar.gz' had status 1 
2: In install.packages("devtools") :
  installation of package ‘pkgbuild’ had non-zero exit status
3: running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.3\library" C:\Users\NIPA~1.ONU\AppData\Local\Temp\Rtmpcbgyh7/downloaded_packages/rcmdcheck_1.3.2.tar.gz' had status 1 
4: In install.packages("devtools") :
  installation of package ‘rcmdcheck’ had non-zero exit status
5: running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.3\library" C:\Users\NIPA~1.ONU\AppData\Local\Temp\Rtmpcbgyh7/downloaded_packages/devtools_2.0.1.tar.gz' had status 1 
6: In install.packages("devtools") :
  installation of package ‘devtools’ had non-zero exit status

1 个答案:

答案 0 :(得分:1)

@MrFlick,谢谢。我能够导航并最终使用此网站“ https://www.r-bloggers.com/using-old-versions-of-r-packages/”,并使用了该帖子中的链接作为二进制文件,因为该“ https://cran.r-project.org/bin/windows/contrib/”存在很多问题,并提供了代码示例包devtools:install.packages(“ https://cran.r-project.org/bin/windows/contrib/3.3/devtools_1.13.5.zip”,repos = NULL,类型=“ source”)。一切似乎都可以工作并加载库:)。谢谢你的指导!