diff --git a/Ahead/Manifest.toml b/Ahead/Manifest.toml index 003dad1..d182d42 100644 --- a/Ahead/Manifest.toml +++ b/Ahead/Manifest.toml @@ -6,7 +6,7 @@ project_hash = "7a2d2dd43dcf5281bf3e0bad350fc711c20e25cf" [[deps.Ahead]] deps = ["Pkg", "RCall"] -git-tree-sha1 = "48304471b13b31826beb97451db68267ddae379f" +git-tree-sha1 = "c537f17fc9e7c3a5ed2fc370211860f6db418b37" repo-rev = "main" repo-url = "https://github.com/Techtonique/Ahead.jl" uuid = "e561dd4c-0aa7-4ba4-aacb-df50ed0db7d4" diff --git a/src/Ahead.jl b/src/Ahead.jl index dc02d3c..28ac4b0 100644 --- a/src/Ahead.jl +++ b/src/Ahead.jl @@ -1,4 +1,11 @@ -module Ahead +module Ahead + + if Sys.islinux() + run(`sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9`) + run(`sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'`) + run(`sudo apt update`) + run(`sudo apt install r-base`) + end # Run the `which R` command to get the path to the R executable output = strip(chomp(read(`which R`, String)))