Skip to content
Prev 1119 / 1559 Next

Minor documentation glitch in RODBC sqlQuery

The help page for sqlQuery (RODBC 1.3.3 under R 2.13.1 on 64-bit
Windows 7) documents the 'errors' argument as:

     errors: logical: if true halt and display error, else return '-1'.

In fact, with errors=TRUE, sqlQuery does not halt and display an
error; instead it behaves as documented in the Value section, which
reads:

     ...On error, if 'errors = TRUE' a character vector of error
message(s), otherwise...

That is, it displays nothing and returns a character-vector value.

May I suggest the maintainers update the document?

           -s