On 09/11/2019 12:33 p.m., Dennis Fisher wrote:
Jeff
A. I can certainly look for the output from Java — but that was not the point
— nothing was captured to CAPTURE with either scenarios.
B. I tried changing case — that did not solve the problem.
The issue remains — when I execute the system command, the text output that I
presented below is not being displayed.
Is there a way to capture that output? If so, I can certainly figure out how
to parse it.
These seem to work for me:
system("Java -version 2>&1", intern = TRUE)
system2("Java","-version", stdout = TRUE, stderr = TRUE)
These are based on reading the help pages, which sometimes helps.
Duncan Murdoch
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.