Neither the console or the graphics device autoprint. When calling "head(), summary(), t.test(), etc.." it is expected that that the user should not have to wrap their calls in "print(...)" statements.
According to the R-Internals document section 1.6 "Autprinting", this is by design, but it can be enabled by checking the R_Visible symbol after execution and calling PrintValue if R_Visible is true.
This example should print to the character device, but does not.
class Program
{
static void Main(string[] args)
{
using (var engine = REngine.GetInstance())
{
engine.Evaluate("head(c(30.02, 29.99, 30.11, 29.97, 30.01, 29.99))\r\n");
Console.ReadKey();
}
}
}
A PR for this issue will be submitted.
According to the R-Internals document section 1.6 "Autprinting", this is by design, but it can be enabled by checking the R_Visible symbol after execution and calling PrintValue if R_Visible is true.
This example should print to the character device, but does not.
class Program
{
static void Main(string[] args)
{
using (var engine = REngine.GetInstance())
{
engine.Evaluate("head(c(30.02, 29.99, 30.11, 29.97, 30.01, 29.99))\r\n");
Console.ReadKey();
}
}
}
A PR for this issue will be submitted.