From eede128deff65829f24c7188c719a56681d78dcf Mon Sep 17 00:00:00 2001 From: Vaibhav Thakkar Date: Tue, 21 Sep 2021 12:46:00 +0530 Subject: [PATCH 1/4] change github actions for ubuntu --- .github/workflows/R-CMD-check-ubuntu.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/R-CMD-check-ubuntu.yml b/.github/workflows/R-CMD-check-ubuntu.yml index cf6cf5479..042e713c6 100644 --- a/.github/workflows/R-CMD-check-ubuntu.yml +++ b/.github/workflows/R-CMD-check-ubuntu.yml @@ -20,18 +20,9 @@ jobs: fail-fast: false matrix: config: - # - {os: macOS-latest, r: 'devel'} - # - {os: macOS-latest, r: 'release'} - # - {os: windows-latest, r: 'devel'} - # - {os: windows-latest, r: 'release'} -# - {os: ubuntu-latest, r: 'devel'} # error in "Run r-lib/actions/setup-r@master" -# - {os: ubuntu-latest, r: 'release'} ##[error]Error in library(devtools) : there is no package called ‘devtools’ -# - {os: ubuntu-18.04, r: 'release'} ##[error]Error in library(devtools) : there is no package called ‘devtools’ - - {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"} - - {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"} - - {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"} - - {os: ubuntu-16.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"} - - {os: ubuntu-16.04, r: '3.3', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"} + - {os: ubuntu-latest, r: 'devel'} # error in "Run r-lib/actions/setup-r@master" + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-18.04, r: 'release'} env: R_REMOTES_NO_ERRORS_FROM_WARNINGS: true From dd9f4be5af8dda5b4ac5879c3071766c48ca763e Mon Sep 17 00:00:00 2001 From: Vaibhav Thakkar Date: Tue, 21 Sep 2021 13:02:06 +0530 Subject: [PATCH 2/4] add sudo apt install commands for devtools error fix --- .github/workflows/R-CMD-check-ubuntu.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check-ubuntu.yml b/.github/workflows/R-CMD-check-ubuntu.yml index 042e713c6..219e9d1a7 100644 --- a/.github/workflows/R-CMD-check-ubuntu.yml +++ b/.github/workflows/R-CMD-check-ubuntu.yml @@ -20,7 +20,7 @@ jobs: fail-fast: false matrix: config: - - {os: ubuntu-latest, r: 'devel'} # error in "Run r-lib/actions/setup-r@master" + - {os: ubuntu-latest, r: 'devel'} - {os: ubuntu-latest, r: 'release'} - {os: ubuntu-18.04, r: 'release'} @@ -31,6 +31,7 @@ jobs: steps: - uses: actions/checkout@v2 + - run: sudo apt install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev; - uses: r-lib/actions/setup-r@master with: From 7079d2d3ecba870a7a72538db78e9fc076bedc41 Mon Sep 17 00:00:00 2001 From: Vaibhav Thakkar Date: Tue, 21 Sep 2021 13:08:02 +0530 Subject: [PATCH 3/4] run apt update before installation --- .github/workflows/R-CMD-check-ubuntu.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check-ubuntu.yml b/.github/workflows/R-CMD-check-ubuntu.yml index 219e9d1a7..80f04167d 100644 --- a/.github/workflows/R-CMD-check-ubuntu.yml +++ b/.github/workflows/R-CMD-check-ubuntu.yml @@ -31,7 +31,8 @@ jobs: steps: - uses: actions/checkout@v2 - - run: sudo apt install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev; + - run: sudo apt-get update || true; + sudo apt install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev; - uses: r-lib/actions/setup-r@master with: From 4dba2c0261724f2f6f1b1bb82918b0d409a84fcd Mon Sep 17 00:00:00 2001 From: Vaibhav Thakkar Date: Tue, 21 Sep 2021 13:23:12 +0530 Subject: [PATCH 4/4] add development version of ubuntu-18.04 --- .github/workflows/R-CMD-check-ubuntu.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/R-CMD-check-ubuntu.yml b/.github/workflows/R-CMD-check-ubuntu.yml index 80f04167d..c22fb5d62 100644 --- a/.github/workflows/R-CMD-check-ubuntu.yml +++ b/.github/workflows/R-CMD-check-ubuntu.yml @@ -22,6 +22,7 @@ jobs: config: - {os: ubuntu-latest, r: 'devel'} - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-18.04, r: 'devel'} - {os: ubuntu-18.04, r: 'release'} env: