Skip to content

Commit

Permalink
replace rappdirs::user_data_dir with tools::R_user_dir do drop rappdi…
Browse files Browse the repository at this point in the history
…rs dependency
  • Loading branch information
e-kotov committed May 26, 2024
1 parent 0cd0e0e commit 0f4494e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/download_java.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
#' download_java(distribution = "Corretto")
#' download_java()
#' }
download_java <- function(version = "17", distribution = "Corretto", dest_dir = rappdirs::user_data_dir("R/java"), platform = .detect_platform()$os, arch = .detect_platform()$arch) {
download_java <- function(version = "17",
distribution = "Corretto",
dest_dir = tools::R_user_dir("rJavaEnv", which = "cache"),
platform = .detect_platform()$os,
arch = .detect_platform()$arch) {
java_urls <- .load_java_urls()

if (!distribution %in% names(java_urls)) {
Expand Down

0 comments on commit 0f4494e

Please sign in to comment.