LoginSignup
1
0

More than 3 years have passed since last update.

Rstudio Cloudでtmapをインストールする

Last updated at Posted at 2018-12-16

表題の件、できなくて困ってて放置していたのですが、twitterで@uriさんが解決案を提示してくれました。これでtmapがRstudio cloudで利用できます!(2018年12月の話です)

通常の方法ではインストールできない

install.packages("tmap",dep=T)

Screen Shot 2018-12-16 at 16.54.02.jpg

あれ、じゃあtmaptoolsやってみるか。

install.packages("tmaptools",dep=T)

Screen Shot 2018-12-16 at 16.57.05.jpg

どうやらlwgeomがインストール失敗するようです。

解決策

@uriさんに教えてもらったものです。
lwgeomの開発版であればインストールできます。

install.packages("remotes")
remotes::install_github("r-spatial/lwgeom", ref = "1cd8e1b")
install.packages("tmap")

テスト。

library(tmap)
data("World")

tm_shape(World) +
tm_polygons("HPI")

Screen Shot 2018-12-16 at 17.02.05.jpg

あらためてRおじさんのすごさを実感。@uriさんありがとうございます。

インストールにはかなり時間を要するのでご注意ください。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0