简体   繁体   中英

Package (rworldmap) can not be loaded in R software

When I load the rworldmap package, it can not be loaded in R software (version: 3.0.3).

The rworldmap package has been installed.
Code: library(rworldmap)

Wrong information appeared on the window as follows:

" Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘fields’
Error: package or namespace load failed for ‘rworldmap’ "

How to tackle it? Thanks for your attention.

Try this

Install package map 
library("ggmap")
library(maptools)
library(maps)
map("world", fill=TRUE, col="white", bg="lightblue", ylim=c(-60, 90), mar=c(0,0,0,0))

Try this in R studio where Dependent packages are automatically get installed .

In base R you Want this packages package 'spam' successfully unpacked and MD5 sums checked package 'fields' successfully unpacked and MD5 sums checked package 'rworldmap' successfully unpacked and MD5 sums checked

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM