Zach, do you have more context? Are you talking about the CRAN Package RPostgreSQL which I once mentored for Google Summer of Code and later maintained (and which is now in the very capabable hands of Tomoaki Nishiyama) as CRAN does not allow actual printf
or std::cout
per Section 6.5 of Writing R Extensions.
You can generally reach maintainers of the DB packages on r-sig-db which Tomoaki reads, and we have (had?) a dedidated list for rpostgresql as well. Tomoaki is very responsive, and I suggest using the proper venue. Venting is not going help. I only caught it because you (mistakenly?) stuck the Rcpp
tag on this. Or did you by chance mean the (very different) rpg by Tim Keitt, yet mistakenly referred to RPostgreSQL instead?
Edit: Some history. We never had proper backend to PostgreSQL. So suggested this as topic for Google Summer of Code, and a student took it and wrote a first, somewhat hackish version. Chiefly by looking what RMySQL did and adapting to the PostgreSQL API. Because behaviour was defined by the R / S definition of the Database Interface -- DBI.
So what you appear to complain about are things like (first grep
find in the RPostgreSQL sources)
(void) sprintf(buf, msg, (int) mgr->length);
RS_DBI_errorMessage(buf, RS_DBI_ERROR);
and I would hence be fairly certain that RMySQL does the same. Given that this is a programmatic use if the prepared string (or, rather, char
vector), I would think that you can in fact suppress this.
If I were you, I'd take a look at the source and/or ask on r-sig-db.