Skip to content

Commit

Permalink
Allow for setting the Julia version in julia_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Dec 1, 2024
1 parent c84aed9 commit 7beff5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
julia_setup <- function(JULIA_HOME = NULL, verbose = TRUE,
installJulia = FALSE,
install = TRUE, force = FALSE, useRCall = TRUE,
rebuild = FALSE, sysimage_path = NULL) {
rebuild = FALSE, sysimage_path = NULL,
version = "latest") {
## libR <- paste0(R.home(), '/lib')
## system(paste0('export LD_LIBRARY_PATH=', libR, ':$LD_LIBRARY_PATH'))

Expand All @@ -55,7 +56,7 @@ julia_setup <- function(JULIA_HOME = NULL, verbose = TRUE,

if (is.null(JULIA_HOME)) {
if (isTRUE(installJulia)) {
install_julia()
install_julia(version)
JULIA_HOME <- julia_locate(JULIA_HOME)
if (is.null(JULIA_HOME))
stop("Julia is not found and automatic installation failed.")
Expand Down

0 comments on commit 7beff5f

Please sign in to comment.