> On Nov 9, 2019, at 8:51 AM, Dennis Fisher <fis...@plessthan.com> wrote:
> 
> R 3.6.3
> OSX and Windows
> 
> Colleagues
> 
> I want to identify if Java is installed on a particular computer.
> 


[...]

> I execute something like:
>       CAPTURE <- system("Java -version", intern=TRUE, ignore.stderr=FALSE, 
> ignore.stdout=FALSE)       
> (with various permutations of TRUE/FALSE for the options) but I cannot 
> capture what is displayed on the console.
> 
> I have also tried “system2” with various TRUE/FALSE permutations without 
> success.
> 
> Any clever ideas?
> 

?Sys.which

HTH,

CCB

______________________________________________
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