> These seem to work for me:
>   system("Java -version 2>&1", intern = TRUE)
>
>   system2("Java","-version", stdout = TRUE, stderr = TRUE)
>

Hi Dennis

I tried your example and Duncan's examples.
In your example, I get zero.
The second of Duncan's examples worked for me, but not the first.

I've got a suspicion that java is writing in unicode, but R is
expecting another format, however, I could be completely wrong on
that.

The following also worked for me:
CAPTURE = shell ("Java -version 2>&1", intern=TRUE)

Abs

______________________________________________
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.

Reply via email to