[R-sig-Geo] plotKML problem
Dylan Beaudette
debeaudette at ucdavis.edu
Mon May 14 21:33:06 CEST 2012
On Sunday, April 29, 2012, Daniel Arribas-Bel wrote:
> 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?
>
This package is still very much a work in progress, and will eventually work
on all platforms. The lead package author, Tom Hengl, may be able to provide
some insight.
Stay tuned,
Dylan
--
Dylan E. Beaudette
USDA-NRCS Soil Scientist
California Soil Resource Lab
http://casoilresource.lawr.ucdavis.edu/
More information about the R-sig-Geo
mailing list