[R-sig-Geo] routine write.pointShape missing from maptools under R 2.10?

reeves at nceas.ucsb.edu reeves at nceas.ucsb.edu
Wed Dec 23 21:02:34 CET 2009


Hello List:

While testing some R scripts that use maptools/write.pointShape(), and which
run correctly under R ver 2.9 (and earlier), I encountered:

package 'maptools' successfully unpacked and MD5 sums checked

The downloaded packages are in
        C:\Users\visitor.rover19\AppData\Local\Temp\RtmpLg4gih\downloaded_packages

Executing the line:
#
# rgdal loads sp
#
     require(rgdal)
     require(PBSmapping)
     require(maptools)
.....

gives:
     write.pointShape(coordinates=coordinates(cbind(PolyCentPBS[,2],PolyCentPBS[,3])),PolyCentPBS,FullName)

Note that this script workes correctly under R 2.9 and earlier....



no methods for 'write.pointShape' and no documentation for it as a function

looking for documentation gives:

> ?write.pointShape
No documentation for 'write.pointShape' in specified packages and libraries:
you could try '??write.pointShape'
> ?write.pointShape()
Error in .helpForCall(topicExpr, parent.frame()) :
  no methods for 'write.pointShape' and no documentation for it as a function
>

The complete run-time output is given below......

When I ran the





R version 2.10.1 (2009-12-14)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session ---
trying URL
'http://cran.cnr.Berkeley.edu/bin/windows/contrib/2.10/maptools_0.7-29.zip'
Content type 'application/zip' length 1041753 bytes (1017 Kb)
opened URL
downloaded 1017 Kb

package 'maptools' successfully unpacked and MD5 sums checked

The downloaded packages are in
        C:\Users\visitor.rover19\AppData\Local\Temp\RtmpLg4gih\downloaded_packages
> ?write.pointShape
No documentation for 'write.pointShape' in specified packages and libraries:
you could try '??write.pointShape'
> ?write.pointShape()
Error in .helpForCall(topicExpr, parent.frame()) :
  no methods for 'write.pointShape' and no documentation for it as a function
>

Is write.pointShape still supported under R 2.10?


Thanks,
Rick R



More information about the R-sig-Geo mailing list