Commit 9be85ee7 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

try this

parent 08ee437d
...@@ -6,38 +6,41 @@ name: pkgdown ...@@ -6,38 +6,41 @@ name: pkgdown
jobs: jobs:
pkgdown: pkgdown:
runs-on: macOS-latest runs-on: ubuntu-18.04
env:
RSPM: https://packagemanager.rstudio.com/cran/__linux__/bionic/latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@master - uses: r-lib/actions/setup-r@v1
id: install-r
- uses: r-lib/actions/setup-pandoc@master - uses: r-lib/actions/setup-pandoc@v1
- name: Query dependencies - name: Install pak and query dependencies
run: | run: |
install.packages(c('remotes')) install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) saveRDS(pak::pkg_deps("local::.", dependencies = TRUE), ".github/r-depends.rds")
shell: Rscript {0} shell: Rscript {0}
- name: Cache R packages
uses: actions/cache@v1 - name: Install system dependencies
with: if: runner.os == 'Linux'
path: ${{ env.R_LIBS_USER }} run: |
key: macOS-r-4.0-3-${{ hashFiles('.github/depends.Rds') }} pak::local_system_requirements(execute = TRUE)
restore-keys: macOS-r-4.0-3- pak::pkg_system_requirements("pkgdown", execute = TRUE)
shell: Rscript {0}
- name: Install dependencies - name: Install dependencies
run: | run: |
options(pkgType = "binary") pak::local_install_dev_deps(upgrade = TRUE, dependencies = c("all", "Config/Needs/website"))
install.packages(c("remotes", "dplyr", "purrr", "ggplot2", "maptools", "sp", "maps", "rgdal", "leaflet", "sf", "zoo", "udunits2", "patchwork")) pak::pkg_install("pkgdown")
remotes::install_deps(dependencies = TRUE)
remotes::install_dev("pkgdown")
shell: Rscript {0} shell: Rscript {0}
- name: Install package - name: Install package
run: R CMD INSTALL . run: R CMD INSTALL .
- name: Deploy package - name: Deploy package
run: | run: |
Sys.setenv(CI = FALSE) Sys.setenv(CI = FALSE)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment