r-tmap / tmap

R package for thematic maps
https://r-tmap.github.io/tmap
GNU General Public License v3.0
864 stars 121 forks source link

Cannot Install tmap from Cran or Github in R 3.3.3 #282

Closed ilared closed 5 years ago

ilared commented 5 years ago

Hi,

I have a Mac (Yosemite) and R version 3.3.3 I cannot install tmap neither from Cran or Github. I have also followed the instruction below to install the updated packages, but nothing. Can anyone help me pls?

install.packages("devtools") library(devtools) install_github("mtennekes/tmaptools") install_github("mtennekes/tmap")

This is the message I get installing it from CRAN (I have tried answering yy, nn, yn, ny..but I get the same result) :

install.packages("tmap") also installing the dependencies ‘lwgeom’, ‘classInt’, ‘tmaptools’, ‘sf’, ‘units’, ‘leaflet’

There are binary versions available but the source versions are later: binary source needs_compilation classInt 0.1-24 0.3-1 TRUE tmaptools 1.2-2 2.0-1 FALSE sf 0.5-5 0.7-2 TRUE units 0.5-1 0.6-2 FALSE leaflet 1.1.0 2.0.2 FALSE tmap 1.11 2.2 FALSE

Do you want to install from sources the packages which need compilation? y/n: y Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘lwgeom’ Do you want to attempt to install these from sources? y/n: y installing the source packages ‘lwgeom’, ‘classInt’, ‘tmaptools’, ‘sf’, ‘units’, ‘leaflet’, ‘tmap’ ....

See `config.log' for more details ERROR: configuration failed for package ‘units’

The downloaded source packages are in ‘/private/var/folders/80/kjckpyfs4k15nzyn796g8q0m0000gn/T/RtmpLYIfoz/downloaded_packages’

### This is the message I get using Github (and agreeing to update all packages):

install_github("mtennekes/tmaptools") Downloading GitHub repo mtennekes/tmaptools@master These packages have more recent versions available. Which would you like to update?

1: classInt (0.1-24 -> 0.3-1 ) [CRAN] 2: DBI (0.8 -> 1.0.0 ) [CRAN] 3: e1071 (1.6-8 -> 1.7-0.1 ) [CRAN] 4: rgdal (1.2-16 -> 1.3-6 ) [CRAN] 5: rgeos (0.3-26 -> 0.4-2 ) [CRAN] 6: sf (0.5-5 -> 0.7-2 ) [CRAN] 7: sp (1.2-6 -> 1.3-1 ) [CRAN] 8: XML (3.98-1.9 -> 3.98-1.17) [CRAN] 9: CRAN packages only 10: All
11: None
Enter one or more numbers separated by spaces, or an empty line to cancel 1: 10 classInt (0.1-24 -> 0.3-1 ) [CRAN] DBI (0.8 -> 1.0.0 ) [CRAN] e1071 (1.6-8 -> 1.7-0.1 ) [CRAN] lwgeom (NA -> 0.1-5 ) [CRAN] rgdal (1.2-16 -> 1.3-6 ) [CRAN] rgeos (0.3-26 -> 0.4-2 ) [CRAN] sf (0.5-5 -> 0.7-2 ) [CRAN] sp (1.2-6 -> 1.3-1 ) [CRAN] units (NA -> 0.6-2 ) [CRAN] XML (3.98-1.9 -> 3.98-1.17) [CRAN] Installing 10 packages: classInt, DBI, e1071, lwgeom, rgdal, rgeos, sf, sp, units, XML

There are binary versions available but the source versions are later: binary source needs_compilation classInt 0.1-24 0.3-1 TRUE DBI 0.7 1.0.0 FALSE e1071 1.6-8 1.7-0.1 TRUE rgdal 1.2-16 1.3-6 TRUE rgeos 0.3-26 0.4-2 TRUE sf 0.5-5 0.7-2 TRUE sp 1.2-6 1.3-1 TRUE units 0.5-1 0.6-2 FALSE XML 3.98-1.9 3.98-1.17 TRUE

Do you want to install from sources the packages which need compilation? y/n: y Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘lwgeom’ Do you want to attempt to install these from sources? y/n: y installing the source packages ‘classInt’, ‘DBI’, ‘e1071’, ‘lwgeom’, ‘rgdal’, ‘rgeos’, ‘sf’, ‘sp’, ‘units’, ‘XML’

...

See `config.log' for more details ERROR: configuration failed for package ‘units’

Do you want to install from sources the packages which need compilation? y/n: y Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘lwgeom’ Do you want to attempt to install these from sources? y/n: y installing the source packages ‘BH’, ‘callr’, ‘classInt’, ‘colorspace’, ‘digest’, ‘gdtools’, ‘glue’, ‘htmlwidgets’, ‘httpuv’, ‘jsonlite’, ‘later’, ‘leaflet’, ‘lwgeom’, ‘mapview’, ‘markdown’, ‘mime’, ‘R6’, ‘rgdal’, ‘rgeos’, ‘sf’, ‘shiny’, ‘sourcetools’, ‘stringi’, ‘stringr’, ‘tmaptools’, ‘units’, ‘utf8’, ‘XML’, ‘yaml’

.....

library("tmap") Error in library("tmap") : there is no package called ‘tmap’

mtennekes commented 5 years ago

Hi, please find out which dependency package fails to install. It is likely one of them that causes this problem.

Nowosad commented 5 years ago

@ilared please try to install the sf package first. The installation instructions are at https://github.com/r-spatial/sf. Please reopen the issue if this doesn't fix your issue.

ilared commented 5 years ago

Ok, thank you.


Da: mtennekes notifications@github.com Inviato: giovedì 14 febbraio 2019 00:13 A: mtennekes/tmap Cc: ilared; Author Oggetto: Re: [mtennekes/tmap] Cannot Install tmap from Cran or Github in R 3.3.3 (#282)

Hi, please find out which dependency package fails to install. It is likely one of them that causes this problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mtennekes/tmap/issues/282#issuecomment-463414318, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AtTyXR4kmtTCugjDUm2Z0zvUV5MYQ-B0ks5vNJwDgaJpZM4azYvh.

ilared commented 5 years ago

Thanks, but it doesn't work either. Cannot install "sf" either.


Da: Jakub Nowosad notifications@github.com Inviato: giovedì 14 febbraio 2019 14:35 A: mtennekes/tmap Cc: ilared; Mention Oggetto: Re: [mtennekes/tmap] Cannot Install tmap from Cran or Github in R 3.3.3 (#282)

@ilaredhttps://github.com/ilared please try to install the sf package first. The installation instructions are at https://github.com/r-spatial/sf. Please reopen the issue if this doesn't fix your issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/mtennekes/tmap/issues/282#issuecomment-463628723, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AtTyXZ7x9sa1B762ECgE0nuesWdv8rSQks5vNWYygaJpZM4azYvh.