Issue with ggmap and libpng/png R package

251 views
Skip to first unread message

Per Nielsen

unread,
Mar 11, 2015, 4:37:35 PM3/11/15
to ggp...@googlegroups.com

Hi all

I installed the newest version of ggmap from CRAN and get the following error (see last lines :).

> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin14.1.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ggmap_2.4     ggplot2_1.0.0 oce_0.9-14    mapproj_1.2-2 maps_2.3-9   

loaded via a namespace (and not attached):
 [1] colorspace_1.2-4    digest_0.6.8        geosphere_1.3-11    grid_3.1.2          gtable_0.1.2       
 [6] jpeg_0.1-8          lattice_0.20-29     MASS_7.3-35         munsell_0.4.2       plyr_1.8.1         
[11] png_0.1-7           proto_0.3-10        Rcpp_0.11.4         reshape2_1.4.1      RgoogleMaps_1.2.0.7
[16] rjson_0.2.15        RJSONIO_1.3-0       scales_0.2.4        sp_1.0-17           stringr_0.6.2      
[21] tools_3.1.2        
> R.Version()
$platform
[1] "x86_64-apple-darwin14.1.0"

$arch
[1] "x86_64"

$os
[1] "darwin14.1.0"

$system
[1] "x86_64, darwin14.1.0"

$status
[1] ""

$major
[1] "3"

$minor
[1] "1.2"

$year
[1] "2014"

$month
[1] "10"

$day
[1] "31"

$`svn rev`
[1] "66913"

$language
[1] "R"

$version.string
[1] "R version 3.1.2 (2014-10-31)"

$nickname
[1] "Pumpkin Helmet"

> sunMap <- get_map(location = 'Copenhagen')
Error in readPNG(tmp) : unable to initialize libpng
In addition: Warning message:
In readPNG(tmp) :
  libpng warning: Application built with libpng-1.6.16 but running with 1.5.17

I have R installed through macports which installs libpng version 1.6.16. ggmap and png were installed via CRAN.

Have anyone else experienced this issue?

Thanks in advance!

Best,
Per

Per Nielsen

unread,
Mar 25, 2015, 3:45:42 AM3/25/15
to ggp...@googlegroups.com
Turned I needed to install the CRAN R in order to make the ggmap/png packages work nicely :)

Per
Reply all
Reply to author
Forward
0 new messages