In some code that I have written, use of url() is generating the output line: "cannot open: HTTP status was `404 Not Found`" The problem is that I do not want R to be outputting any error messages - I have 'internet.info' set to 3, show.error.messages set to FALSE and the url() wrapped in a try(). When the URL is not found I am already handling it in a manner consistent with the rest of the package and the 'cannot open' line is confusing some users. The problem is that I can not figure out how to turn it off, the comment in printutils says that REprintf writes to stderr and is not redirected by sink(). The call in question appears to be coming from in_R_HTTPOpen, in that if the HTTP return code is != 200 the REprintf is called. Is there any way within R to keep this output from appearing? Thanks -J
On Mon, 8 Sep 2003, Jeff Gentry wrote:> > In some code that I have written, use of url() is generating the output > line: > "cannot open: HTTP status was `404 Not Found`" >My fault. This used to use error(), but as you will recall, the result was that the connection wasn't freed and getBioC() leaked a lot of connections. Presumably it should test for options(internet.info) before printing. I'll have a look when I get back to Seattle. -thomas