Skip to content

create a function to get current JAVA_HOME #57

Description

@e-kotov

There is java_check_version_cmd():

java_check_version_cmd <- function(

There is also java_check_version_rjava():

java_check_version_rjava <- function(

They both print the current JAVA_HOME if no parameter is specified. But it would be nice to have a simple function that returns current JAVA_HOME. Basically it would be a wrapper around Sys.getenv("JAVA_HOME"), as it would be much easier to start typing in console java_home() and get autocomplete. Perhaps the function should be called something else, e.g. java_current_home(). I'm open to suggestions.

This should be a very easy function to write, looks like a good candidate for a first pull request from a novice.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions