[Rd] Reading exit code of pipe()

Jeroen Ooms jeroen.ooms at stat.ucla.edu
Thu May 14 02:24:42 CEST 2015

Is there a way to get the status code of a pipe() command? The
documentation suggests that it might be returned by close, however
this does not seem to be the case.

  con <- pipe("cat /etc/passwd", "r")
  stream <- readLines(con, n = 10)
  err <- close(con)

More information about the R-devel mailing list