Try this:

library(RMySQL)
#conn <- dbConnect(...)
mysqlEscapeStrings(conn, "tes't")

On Tue, Aug 10, 2010 at 3:02 AM, Orvalho Augusto <orvaquim@gmail.com> wrote:

> Hello guys! May be I am lazy but
>
> I need to replace a character like \ or ' or to escape them in a character
> vector to write a SQL statement.
>
> How can I do that?
>
> Caveman
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

