Dear R-sig-geo list,

I have succesfully installed 'plotKML' 0.1-6 under Ubuntu 11.10-32bit
running R 2.15. I run into an error when I try to replicate one of the
examples in the documentation, particularly that of kml-methods (
http://plotkml.r-forge.r-project.org/kml-method.html). The first one runs
fine but when I try to plot a SpatialPixelsDataFrame:

## End(Not run)
# Plotting a SpatialPixelsDataFrame or a Raster* object
data(eberg_grid)
coordinates(eberg_grid) <- ~x+y
gridded(eberg_grid) <- TRUE
proj4string(eberg_grid) <- CRS("+init=epsg:31467")
## Not run:
kml(eberg_grid, colour = DEM, file = "eberg_grid-0.kml")



I run into the following error:

Error in paths(show.paths = TRUE) :
>   could not find function "shortPathName"
>

In fact, simply typing 'paths()' returns the same error. A bit of googling
seems to reveal the method 'shortPathName' appears to only exist in the Win
version of R, but not for linux/Mac.

Is plotKML supposed to work only under Windows? If not, am I mising
something? Is there any workaround?

Any comment/suggestion is mostly welcome. Thanks very much in advance,

]d[



-- 
============================================================
Daniel Arribas-Bel, PhD.
Url: darribas.org
Mail: darribas@asu.edu

GeoDa Center for Geospatial Analysis and Computation (geodacenter.asu.edu)
Arizona State University (USA)
============================================================

	[[alternative HTML version deleted]]

