From jeroen.ooms at stat.ucla.edu  Thu May 14 02:24:42 2015
From: jeroen.ooms at stat.ucla.edu (Jeroen Ooms)
Date: Wed, 13 May 2015 17:24:42 -0700
Subject: [Rd] Reading exit code of pipe()
Message-ID: <CABFfbXv7OzDSt3n9HwkG3Oat0sH3t47LYQZT7ja7QBJQOY9sGw@mail.gmail.com>

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)
  print(err)



[Rd] Reading exit code of pipe()
Jeroen Ooms