[R-sig-Geo] how to work with useFancyQuotes( ) to avoid \" quotes

Paulo E. Cardoso pecardoso at netcabo.pt
Wed Jul 15 13:15:32 CEST 2009


I need to get the exact sentence, with the quotes:

OPTIONS COORDSYS("Surface1"  AS COMPONENT);

but this:

options(useFancyQuotes = F)
paste("OPTIONS COORDSYS(", dQuote("Surface 1"),  "AS COMPONENT);" )

give me this:

[1] "OPTIONS COORDSYS( \"Surface 1\" AS COMPONENT);"

And it's not readable as SpatialSQL code by GIS

How to deal with this problem?
____________
Paulo E. Cardoso



More information about the R-sig-Geo mailing list