[R-sig-Geo] trouble with readOGR() and shapes files

2010-10-14 Thread Ricardo Rodríguez
hi all I'm having problems with a shape file using the package with the following statement rgdal. *readOGR(dsn=/var/www/outputs/,layer=capa.dbf) * get this error or this error: *Error in ogrInfo(dsn = dsn, layer = layer, input_field_name_encoding = input_field_name_encoding) : Cannot open

Re: [R-sig-Geo] trouble with readOGR() and shapes files

2010-10-14 Thread Michael Sumner
Maybe try not using NULL but NULL (which is default anyway, so you could leave it out): readOGR(dsn=**/var/www/outputs/**, p4s=NULL, layer=**capa.dbf**)* I don't know about the asterisks - why are you using those in the second call with p4s, and not the first, and why is the layer name