[R-sig-DB] Minor documentation glitch in RODBC sqlQuery

Stavros Macrakis m@cr@k|@ @end|ng |rom @|um@m|t@edu
Thu Nov 3 22:56:45 CET 2011


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




More information about the R-sig-DB mailing list