1

我在加载rworldmap时遇到了字段错误的问题。我发现一个帖子有同样的错误,但是,解决方法不起作用。另外,我的R版本是R版本3.4.3(2017-11-30)

包(rworldmap)无法在 R 软件中加载

  > install.packages("rworldmap", dependencies = TRUE )
   Installing package into ‘C:/Users/johnw/Documents/R/win-library/3.4’
  (as ‘lib’ is unspecified)
   also installing the dependencies ‘e1071’, ‘fields’, ‘rgdal’, 
  ‘rworldxtra’, ‘classInt’


    There is a binary version available but the source version is later:
   binary source needs_compilation
   fields    9.0    9.6              TRUE

    Binaries will be installed
   trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/e1071_1.6-
   8.zip'
   Content type 'application/zip' length 894561 bytes (873 KB)
  downloaded 873 KB

  trying URL 
  'https://cran.rstudio.com/bin/windows/contrib/3.4/fields_9.0.zip'
  Warning in install.packages :
 cannot open URL 
 'https://cran.rstudio.com/bin/windows/contrib/3.4/fields_9.0.zip': HTTP 
  status was '404 Not Found'
  Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 
  'https://cran.rstudio.com/bin/windows/contrib/3.4/fields_9.0.zip'
  Warning in install.packages :
  download of package ‘fields’ failed
 trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rgdal_1.2-
 16.zip'
 Content type 'application/zip' length 30479400 bytes (29.1 MB)
 downloaded 29.1 MB

 trying URL 
'https://cran.rstudio.com/bin/windows/contrib/3.4/rworldxtra_1.01.zip'
 Content type 'application/zip' length 5273807 bytes (5.0 MB)
 downloaded 5.0 MB

  trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/classInt_0.1-
  24.zip'
  Content type 'application/zip' length 60087 bytes (58 KB)
  downloaded 58 KB

  trying URL 
 'https://cran.rstudio.com/bin/windows/contrib/3.4/rworldmap_1.3-6.zip'
 Content type 'application/zip' length 2872574 bytes (2.7 MB)
 downloaded 2.7 MB

package ‘e1071’ successfully unpacked and MD5 sums checked
package ‘rgdal’ successfully unpacked and MD5 sums checked
package ‘rworldxtra’ successfully unpacked and MD5 sums checked
package ‘classInt’ successfully unpacked and MD5 sums checked
package ‘rworldmap’ successfully unpacked and MD5 sums checked

即使尝试直接加载字段包,我也会收到以下错误:

   > install.packages("fields")
    Installing package into ‘C:/Users/johnw/Documents/R/win-library/3.4’
   (as ‘lib’ is unspecified)

  There is a binary version available but the source version is later:
   binary source needs_compilation
 fields    9.0    9.6              TRUE

 Binaries will be installed
 trying URL 
'https://cran.rstudio.com/bin/windows/contrib/3.4/fields_9.0.zip'
 Warning in install.packages :
 cannot open URL 
'https://cran.rstudio.com/bin/windows/contrib/3.4/fields_9.0.zip': HTTP 
 status was '404 Not Found'
 Error in download.file(url, destfile, method, mode = "wb", ...) : 
 cannot open URL 
'https://cran.rstudio.com/bin/windows/contrib/3.4/fields_9.0.zip'
 Warning in install.packages :
 download of package ‘fields’ failed

任何帮助,将不胜感激。谢谢

4

0 回答 0