[Rd] help.start()'s error redirection fails to hide mozilla's "No running window found" message (PR#9452)

From: <jorgnsn_at_lcd.uregina.ca>
Date: Fri 12 Jan 2007 - 21:52:27 GMT

Full_Name: John Jorgensen
Version: 2.4.0
OS: Solaris 9
Submission from: (NULL) (

This is not a serious problem, but while trying to understand some difficulties that R had finding our copy of mozilla, I noticed that the browseURL() function defined in help.start.R includes the lines:

    system(paste(browser, remoteCmd, "2>&1 >/dev/null ||",

                 browser, quotedUrl, "&"))

I assume the intent is to hide the "No running window found" or equivalent message that the remoteCmd might print before trying to start a new instance of the browser. On the shells I've tried, though, you need to reverse the order of the redirections to achieve this, i.e.: ">dev/null 2>&1" instead of "2>&1

Apologies if I've misunderstood your intent, or if there are other shells where you need the order you've used.

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Jan 13 22:56:39 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 13 Jan 2007 - 13:31:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.