Due to a different error I found that julia_setup will skip installation if julia is already installed .
The problem is here, where julia_setup() first uses julia_locate() and if it's found, it skips the whole installation, even if installJulia is set to TRUE.
JULIA_HOME <- julia_locate(JULIA_HOME)
if (is.null(JULIA_HOME)) {
if (isTRUE(installJulia)) {
install_julia(version)
JULIA_HOME <- julia_locate(JULIA_HOME)
if (is.null(JULIA_HOME))
stop("Julia is not found and automatic installation failed.")
}
else {
stop("Julia is not found.")
}
}
This means that julia_setup(version = "latest", installJulia = TRUE) will, in fact, not install the latest version if an older version is present. Similarly, julia_setup(installJulia = TRUE, version = "1.9.0") will not install the required version if any other version exists.
The installer should check if the installed version matches the required version and only skip installation if they match.
Due to a different error I found that
julia_setupwill skip installation if julia is already installed .The problem is here, where
julia_setup()first usesjulia_locate()and if it's found, it skips the whole installation, even ifinstallJuliais set to TRUE.This means that
julia_setup(version = "latest", installJulia = TRUE)will, in fact, not install the latest version if an older version is present. Similarly,julia_setup(installJulia = TRUE, version = "1.9.0")will not install the required version if any other version exists.The installer should check if the installed version matches the required version and only skip installation if they match.