Skip to content

julia_setup(installJulia = TRUE) does not reliably install julia. #281

Description

@eliocamp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions