[R] RMySQL, Sweave and the annoying TRUE echo

Stefan Petersson
Fri, 29 Jan 2010 11:10:51 -0000

Hi,

A small (but annoying) problem with RMySQL library. When a connection is closed,
it echoes 'TRUE' to the console. Like this:

 R> mysqlCloseConnection(con)
 [1] TRUE

The real problem comes when I use RMySQL with Sweave, since the TRUE echo gets
into my final Sweave document. Even when I explicitly state
<<include=FALSE, echo=FALSE>>= in the header of the R code chunk.

Is there a way to suppress this TRUE echo?

TIA

 / s