java_clear {rJavaEnv} | R Documentation |
Wrapper function to clear the Java symlinked in the current project, installed, or distributions caches.
java_clear(
type = c("project", "installed", "distrib"),
target_dir = NULL,
check = TRUE,
delete_all = FALSE
)
type |
What to clear: "project" - remove symlinks to install cache in the current project, "installed" - remove installed Java versions, "distrib" - remove downloaded Java distributions. |
target_dir |
The directory to clear. Defaults to current working directory for "project" and user-specific data directory for "installed" and "distrib". Not recommended to change. |
check |
Whether to list the contents of the cache directory before clearing it. Defaults to TRUE. |
delete_all |
Whether to delete all items without prompting. Defaults to FALSE. |
A message indicating whether the cache was cleared or not.
## Not run:
java_clear("project", target_dir = tempdir())
java_clear("installed", target_dir = tempdir())
java_clear("distrib", target_dir = tempdir())
## End(Not run)