[R] map does not display maps, MacOSX
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Wed Nov 5 12:34:00 CET 2003
Notice the // in the path
/Users/glaziou/Library/R/maps/mapdata//world.N
Some Windows filesystems do not like that, and my guess is that some MacOS
X ones may not either.
On Wed, 5 Nov 2003, Philippe Glaziou wrote:
> 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
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list