Learn R Programming

photon (version 0.3.5)

has_java: Is Java installed?

Description

Utility function to check if Java is installed and if it has the right version.

Usage

has_java(version = NULL)

Value

A logical vector of length 1.

Arguments

version

Character string specifying the minimum version of Java. If the installed Java version is lower than this, returns FALSE. If NULL, only checks if any kind of Java is installed on the system.

Examples

Run this code
has_java() # Is Java installed?
has_java("11") # Is Java > 11 installed?

Run the code above in your browser using DataLab