This function lists one of the following:
project- list the contents of the Java symlinked/copied in the current project or directory specified bytarget_dirdistrib- list the contents of the downloaded Java distributions cache in default location or specified bytarget_dirinstalled- list the contents of the Java installations cache (unpacked distributions) in default location or specified bytarget_dir
Arguments
- type
The type of cache to list: "distrib", "installed", or "project". Defaults to "project".
- output
The format of the output:
data.frame`` orvector“. Defaults todata.frame.- quiet
A
logicalvalue indicating whether to suppress messages. Can beTRUEorFALSE.- target_dir
The cache directory to list. Defaults to the user-specific data directory for "distrib" and "installed", and the current working directory for "project".
Value
A dataframe or character vector with the contents of the specified cache or project directory.
Examples
java_list("project")
#> ✖ No Java has been installed in the project.
java_list("installed")
#> path
#> 1 /home/runner/.cache/R/rJavaEnv/installed/linux/x64/Corretto/native/17
#> platform arch distribution backend version
#> 1 linux x64 Corretto native 17
java_list("distrib")
#> ✖ No Java distributions have been downloaded.
#> character(0)
