[R-sig-Geo] downsampling a lines shapefile?

Nick Matzke matzke at berkeley.edu
Tue Oct 25 21:11:00 CEST 2011

Thanks so much!  I've almost gotten rgeos to install, 
however I'm getting a peculiar error about a (successfully 
installed) other package, stringr:

"Error : package 'stringr' does not have a name space"

...any idea what that might be about?  Grateful as always!!

PS Full error message below...

 > install.packages("/Users/nick/Desktop/downloads/rgeos", 
"/Library/Frameworks/R.framework/Resources/library/", NULL, 
WARNING: ignoring environment value of R_HOME
Loading ~/.Rprofile...
Currently viewed PATH:
* installing *source* package ‘rgeos’ ...
geos-config: /usr/local/bin/geos-config
GEOS: 3.2.3
LIBS: -L/usr/local/lib -lgeos
configure: creating ./config.status
config.status: creating src/Makevars
** libs
** arch - i386
make: Nothing to be done for `all'.
** R
** inst
** preparing package for lazy loading
Loading required package: plyr
Error : package 'stringr' does not have a name space
ERROR: lazy loading failed for package ‘rgeos’
* removing 
Warning message:
In install.packages("/Users/nick/Desktop/downloads/rgeos", 
"/Library/Frameworks/R.framework/Resources/library/",  :
   installation of package 
'/Users/nick/Desktop/downloads/rgeos' had non-zero exit status

On 10/25/11 1:32 AM, Roger Bivand wrote:
> On Mon, 24 Oct 2011, Nick Matzke wrote:
>> Hi all,
>> I have a shapefile with a number of line features. I can
>> load it and plot it. Is there an easy way to downsample or
>> smooth the shapefile to a coarser resolution?
> ?gSimplify in rgeos?
> Roger
>> Thanks so much for your help,
>> Nick

Nicholas J. Matzke
Ph.D. Candidate, Graduate Student Researcher

Huelsenbeck Lab
Center for Theoretical Evolutionary Genomics
4151 VLSB (Valley Life Sciences Building)
Department of Integrative Biology
University of California, Berkeley

Graduate Student Instructor, IB200B
Principles of Phylogenetics: Ecology and Evolution

Lab websites:
Dept. personal page: 
Lab personal page: 
Lab phone: 510-643-6299
Dept. fax: 510-643-6264

Cell phone: 510-301-0179
Email: matzke at berkeley.edu

Mailing address:
Department of Integrative Biology
3060 VLSB #3140
Berkeley, CA 94720-3140

"[W]hen people thought the earth was flat, they were wrong. 
When people thought the earth was spherical, they were 
wrong. But if you think that thinking the earth is spherical 
is just as wrong as thinking the earth is flat, then your 
view is wronger than both of them put together."

Isaac Asimov (1989). "The Relativity of Wrong." The 
Skeptical Inquirer, 14(1), 35-44. Fall 1989.

More information about the R-sig-Geo mailing list