Skip to content
Snippets Groups Projects
Commit 758f6644 authored by Christian Humer's avatar Christian Humer
Browse files

Temporary workaround for printing R results twice.

parent 251ddbcd
Branches
No related tags found
No related merge requests found
......@@ -103,13 +103,9 @@ public final class TruffleRLanguage extends TruffleLanguage<RContext> {
@Override
protected String toString(RContext context, Object value) {
// TODO this is a hack to not show non visible results in interactive mode
// we need a separate API for that.
if (!context.isInteractive() || context.isVisible()) {
return RContext.getEngine().toString(value);
} else {
return null;
}
// TODO This is a hack because R is still printing its own results
// every use of PolyglotEngine should return a value instead of printing the result.
return null;
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment