Skip to contents

List the contents of the Java cache

Usage

java_list(
  type = c("project", "installed", "distrib"),
  output = c("data.frame", "vector"),
  verbose = FALSE,
  target_dir = NULL
)

Arguments

type

The type of cache to list: "distrib", "installed", or "project".

output

The format of the output: "data.frame" or "vector". Defaults to "data.frame".

verbose

Whether to print detailed messages. Defaults to FALSE.

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 data frame or character vector with the contents of the specified cache directory.

Examples

java_list("project")
#>  Project Java symlink directory does not exist
#> character(0)
java_list("installed")
#>  Path does not exist
#> character(0)
java_list("distrib")
#>  Path does not exist
#> character(0)