R language maptools, mapdata, maps package download

If I want to learn R language drawing, I have been looking for a long time to find a way to load the drawing map package. It is really simple:

1. Find the URL to download maptools (available on CRAN) https://cran.r-project.org/web/packages/mapdata/index.html


2. Windows system click the red box


3. Download to the location and modify it according to the location of the installed R package. After downloading, find it and extract it to the current folder.


Let's see if it can be used, it turns out that it can't be used, and running library (maps) will crash, hey!

I asked a friend or the original download method install.packages("maps"), install.pcackages("maptools"), install.packages("mapdata"), and it was successful.

It's so sad. I'll see later why it's not easy to download and unzip it directly. If anyone knows why, remember to comment and tell me.pitfulpitful

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324598896&siteId=291194637