[R] Identifying presence of Java

Berry, Charles ccberry @end|ng |rom uc@d@edu
Sat Nov 9 18:56:14 CET 2019



> On Nov 9, 2019, at 8:51 AM, Dennis Fisher <fisher using 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



More information about the R-help mailing list