From fdb92f6b5761f0998633c91a6266ac6565581984 Mon Sep 17 00:00:00 2001 From: Kaitlyn Johnson Date: Mon, 25 Mar 2024 17:36:00 +0000 Subject: [PATCH] remove extra files that should have been removed when we set up r cmd check CI --- .github/workflows/tests.yaml | 21 --------------------- ci/run/test-vignette.R | 1 - ci/run/unit-tests.R | 2 -- ci/setup/install-cmdstan.R | 2 -- ci/setup/install-package.R | 9 --------- 5 files changed, 35 deletions(-) delete mode 100644 .github/workflows/tests.yaml delete mode 100644 ci/run/test-vignette.R delete mode 100644 ci/run/unit-tests.R delete mode 100644 ci/setup/install-cmdstan.R delete mode 100644 ci/setup/install-package.R diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml deleted file mode 100644 index 1c91db43..00000000 --- a/.github/workflows/tests.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Run Tests - -on: - pull_request: - push: - branches: [main] - -jobs: - tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: r-lib/actions/setup-r@v2 - with: - r-version: '4.3.2' - - run: sudo apt install -y pandoc git pandoc-citeproc make libssl-dev libfreetype6-dev libfribidi-dev libharfbuzz-dev libfontconfig1-dev libudunits2-dev zlib1g-dev libcurl4-openssl-dev libxml2-dev libgit2-dev libjpeg-dev libpng-dev libtiff-dev libicu-dev libglpk-dev libgmp3-dev libgdal-dev gdal-bin libgeos-dev libproj-dev libsqlite3-dev - - uses: ./.github/actions/setup-r - - run: Rscript ci/run/unit-tests.R - shell: bash -# - run: Rscript ci/run/test-vignette.R -# shell: bash diff --git a/ci/run/test-vignette.R b/ci/run/test-vignette.R deleted file mode 100644 index f0b305cd..00000000 --- a/ci/run/test-vignette.R +++ /dev/null @@ -1 +0,0 @@ -rmarkdown::render("cfaforecastrenewalww/vignettes/toy_data_vignette.Rmd") diff --git a/ci/run/unit-tests.R b/ci/run/unit-tests.R deleted file mode 100644 index 6a2999f7..00000000 --- a/ci/run/unit-tests.R +++ /dev/null @@ -1,2 +0,0 @@ -library(devtools) -devtools::test("cfaforecastrenewalww") diff --git a/ci/setup/install-cmdstan.R b/ci/setup/install-cmdstan.R deleted file mode 100644 index 5bf34cf8..00000000 --- a/ci/setup/install-cmdstan.R +++ /dev/null @@ -1,2 +0,0 @@ -options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/jammy/latest")) -install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) diff --git a/ci/setup/install-package.R b/ci/setup/install-package.R deleted file mode 100644 index e5e72d53..00000000 --- a/ci/setup/install-package.R +++ /dev/null @@ -1,9 +0,0 @@ -options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/jammy/latest")) - -library(cmdstanr) -check_cmdstan_toolchain() -install_cmdstan(cores = 2) - -install.packages("remotes") -install.packages("devtools") -remotes::install_local("cfaforecastrenewalww", upgrade = TRUE)