title: Printing multi-line R output from PHP
body: <p>I am using <code>venn()</code> of <code>gplots</code> package of R and I want to print the intersections on php. I am executing R using <code>exec()</code> and printing the output, it only prints last lines of a.</p>
  
  <pre><code>library(gplots)
  f &lt;- list(a, b, c, d, e)
  
  info&lt;-venn(f)
  aa&lt;-attr(info, "intersections")
  print(aa)
  </code></pre>