Skip to content

how to work with useFancyQuotes( ) to avoid \" quotes

3 messages · Jaime R. Garcia Marquez, Paulo Cardoso

#
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
#
Try this:

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

HTH,

Jaime -R

On Wed, 15 Jul 2009 13:15:32 +0200, Paulo E. Cardoso
<pecardoso at netcabo.pt> wrote:

            
#
It seems to works fine!
Thanks
____________
Paulo E. Cardoso