Skip to content

Commit 5a4d8b3

Browse files
Merge pull request #5 from dapperstats/package_work
web
2 parents 9431760 + 79cc45e commit 5a4d8b3

File tree

5 files changed

+88
-37
lines changed

5 files changed

+88
-37
lines changed

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/pkgdown.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# building website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
release:
8+
types: [published]
9+
10+
name: pkgdown
11+
12+
jobs:
13+
pkgdown:
14+
runs-on: ubuntu-20.04
15+
env:
16+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
17+
_R_CHECK_FORCE_SUGGESTS_: true
18+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
19+
CRAN_REPO: https://packagemanager.rstudio.com/all/__linux__/focal/latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- uses: r-lib/actions/setup-r@v1
24+
25+
- uses: r-lib/actions/setup-pandoc@v1
26+
27+
- name: Query dependencies
28+
run: |
29+
install.packages('remotes', repos = c("CRAN" = Sys.getenv("CRAN_REPO")))
30+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
31+
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
32+
shell: Rscript {0}
33+
34+
- name: Cache R packages
35+
uses: actions/cache@v1
36+
with:
37+
path: ${{ env.R_LIBS_USER }}
38+
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
39+
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
40+
41+
- name: Install system dependencies
42+
run: |
43+
sudo apt-get update -qq
44+
sudo apt-get install texlive-latex-base libharfbuzz-dev libfribidi-dev
45+
sudo apt-get install gsl-bin libgsl0-dev
46+
sudo apt-get install libcurl4-openssl-dev
47+
sudo apt-get install jags
48+
49+
- name: Install package dependencies
50+
run: |
51+
remotes::install_deps(dependencies = TRUE, repos = c("CRAN" = Sys.getenv("CRAN_REPO")))
52+
install.packages(c("stringi", "stringr", "knitr"))
53+
remotes::install_github("tidyverse/tidytemplate")
54+
remotes::install_dev("pkgdown")
55+
shell: Rscript {0}
56+
57+
- name: Install package
58+
run: R CMD INSTALL .
59+
60+
- name: Deploy package
61+
run: |
62+
git config --local user.email "[email protected]"
63+
git config --local user.name "GitHub Actions"
64+
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE, examples = FALSE)'

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# bbplot 0.0.1
44

5+
[![R Build](https://github.com/dapperstats/bbplot/actions/workflows/r.yml/badge.svg)](https://github.com/dapperstats/bbplot/actions/workflows/r.yml)
56
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dapperstats/bbplot/master/LICENSE)
67
[![Lifecycle:maturing](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
78
[![Codecov test coverage](https://img.shields.io/codecov/c/github/dapperstats/bbplot/master.svg)](https://codecov.io/github/dapperstats/bbplot/branch/master)

_pkgdown.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
url: https://dapperstats.github.io/bbplot
2+
development:
3+
mode: auto
4+
navbar:
5+
title: "bbplot"
6+
structure:
7+
left: [home, reference, news]
8+
right: [twitter, github]
9+
components:
10+
reference:
11+
text: "Reference"
12+
href: reference/index.html
13+
news:
14+
text: "News"
15+
href: news/index.html
16+
twitter:
17+
icon: fa-twitter
18+
href: https://twitter.com/dapperstats
19+
github:
20+
icon: fa-github
21+
href: https://github.com/dapperstats
22+

0 commit comments

Comments
 (0)