Skip to content

update viz document #30

update viz document

update viz document #30

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
branches: [master]
name: run-check
jobs:
run-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-20.04, r: '4.2'}
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_LIBS_USER: ${{ github.workspace }}/R
steps:
- uses: actions/[email protected]
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- name: Run tests
run: |
sink("test.out")
update.packages(lib.loc=Sys.getenv("R_LIBS_USER"))
if (length(find.package("ggplot2",quiet=TRUE)) < 1) install.packages("ggplot2")
if (length(find.package("dplyr",quiet=TRUE)) < 1) install.packages("dplyr")
if (length(find.package("plyr",quiet=TRUE)) < 1) install.packages("plyr")
if (length(find.package("reshape2",quiet=TRUE)) < 1) install.packages("reshape2")
if (length(find.package("tidyr",quiet=TRUE)) < 1) install.packages("tidyr")
cat("running tutorial codes....")
source("tutorial.R",echo=TRUE)
cat("running munging codes....")
source("munging.R",echo=TRUE)
cat("running viz codes....")
source("viz.R",echo=TRUE)
sink()
shell: Rscript {0}
- uses: actions/[email protected]
with:
name: install-test-${{ matrix.config.os }}-${{ matrix.config.r }}
path: ${{ github.workspace }}/test.out