[R] map does not display maps, MacOSX
Philippe Glaziou
glaziou at pasteur-kh.org
Wed Nov 5 12:18:49 CET 2003
Hi,
I installed the maps and mapdata libraries on my R-1.8.0 on
MacOSX 10.2.8 (jaguar on a powerbook G4), and failed to make the
map function work properly:
R : Copyright 2003, The R Development Core Team
Version 1.8.0 (2003-10-08)
[...]
> library(maps)
> map()
Error in file(file, "r") : unable to open connection
In addition: Warning message:
cannot open file `/Users/glaziou/Library/R/maps/mapdata//world.N'
> map('usa')
Error in file(file, "r") : unable to open connection
In addition: Warning message:
cannot open file `/Users/glaziou/Library/R/maps/mapdata//usa.N'
> system('ls -l /Users/glaziou/Library/R/maps/mapdata')
total 1796
-rw-r--r-- 1 root staff 143902 Oct 14 11:30 county.G
-rw-r--r-- 1 root staff 690260 Oct 14 11:30 county.L
-rw-r--r-- 1 root staff 618 Oct 14 11:30 nz.G
-rw-r--r-- 1 root staff 13040 Oct 14 11:30 nz.L
-rw-r--r-- 1 root staff 2642 Oct 14 11:30 state.G
-rw-r--r-- 1 root staff 96892 Oct 14 11:30 state.L
-rw-r--r-- 1 root staff 282 Oct 14 11:30 usa.G
-rw-r--r-- 1 root staff 58232 Oct 14 11:30 usa.L
-rw-r--r-- 1 root staff 74434 Oct 14 11:30 world.G
-rw-r--r-- 1 root staff 295152 Oct 14 11:30 world.L
-rw-r--r-- 1 root staff 74434 Oct 14 11:30 world2.G
-rw-r--r-- 1 root staff 295152 Oct 14 11:30 world2.L
-rw-r--r-- 1 root staff 54832 Oct 14 11:30 world2.N
Most of contributed libraries are installed in ~/Library/R
because I am the only user of that mac and this simplifies
backup. I checked the access rights of relevant files and
directories and they all seem correct (these are owned by root
but are world readable and directories are world cd'able).
Compilation of both libraries maps and mapdata went ok. I have
the same libraries installed on a linux server where they work
perfectly well.
A similar error message occurs whether R is started in an xterm,
within emacs/ESS on X11, or using the RAqua interface.
Any hint appreciated,
--
Philippe Glaziou
More information about the R-help
mailing list