Allow to specify whether an R script is expected to produce a text or an image
|Assignee:||Christoph Dwertmann||% Done:|
Not all R scripts generate images.
oml.R should be extended with a function specifying what the portal should expect (a PNG graph, a text output, ...) and display the relevant one by default.
For text-by-default, it would be good if the initial R header, up and not including the first command of the user script, were hidden by default, but displayable.
A prime example of the problem is at http://ireel.npc.nicta.com.au/issues/866#note-1 : no graph is generated, but text output is valuable. However, asking to display R output also shows all the R header, which is a bit useless when the script is not incorrect, and only its output is valuable to the researcher.