Sending R-Errors (from the console) into the Java standard output, when using JRI

StackOverflow https://stackoverflow.com/questions/23261686

  •  08-07-2023
  •  | 
  •  

Pergunta

Inside my Java code I'm using the eval method (JRI) to run R commands within Java (I'm not interested in reading .R files through source command , due to distribution considerations).

I'm trying to debug my R code within Java.

Although i ran into an interesting solution in Reading R-Errors through JRI , which uses the sink function in R, I'm looking for a way to import the R console output straight into my Java output (it seems more comfortable).

Has anyone of you ever managed to import R console output straight into the Java output?

Foi útil?
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top