mirror of
https://github.com/actions/runner-images.git
synced 2025-12-19 00:06:57 +00:00
Latest R version (#1331)
* update R version * fi for all ubuntu * remove if * change naming Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
This commit is contained in:
@@ -2,9 +2,16 @@
|
|||||||
|
|
||||||
# Source the helpers for use with the script
|
# Source the helpers for use with the script
|
||||||
source $HELPER_SCRIPTS/document.sh
|
source $HELPER_SCRIPTS/document.sh
|
||||||
|
source $HELPER_SCRIPTS/os.sh
|
||||||
|
|
||||||
# install R
|
# install R
|
||||||
sudo apt-get install -y r-base
|
osLabel=$(getOSVersionLabel)
|
||||||
|
|
||||||
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
|
||||||
|
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $osLabel-cran40/"
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install r-base
|
||||||
version=$(R --version | grep "R version" | cut -d " " -f 3)
|
version=$(R --version | grep "R version" | cut -d " " -f 3)
|
||||||
|
|
||||||
DocumentInstalledItem "R $version"
|
DocumentInstalledItem "R $version"
|
||||||
|
|||||||
Reference in New Issue
Block a user