Skip to content

Commit

Permalink
doc via github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kwstat committed Jul 17, 2024
1 parent 7e8f7cf commit 630e0e5
Show file tree
Hide file tree
Showing 48 changed files with 132 additions and 3,528 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# ----- Git -----
^.gitignore$
^\.github$

# ----- devtools -----
^revdep$
Expand Down
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
50 changes: 50 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

permissions: read-all

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ man
revdep
pkgdown
CRAN-RELEASE
docs
18 changes: 11 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
Type: Package
Package: desplot
Title: Plotting Field Plans for Agricultural Experiments
Version: 1.10
Authors@R: person("Kevin","Wright", email="[email protected]", comment=c(ORCID = "0000-0002-0617-8673"), role=c("aut","cre","cph"))
Type: Package
Description: A function for plotting maps of agricultural field experiments that are laid out in grids. See Ryder (1981) <doi:10.1017/S0014479700011601>.
Authors@R:
person("Kevin", "Wright", , "[email protected]", role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0002-0617-8673"))
Description: A function for plotting maps of agricultural field
experiments that are laid out in grids. See Ryder (1981)
<doi:10.1017/S0014479700011601>.
License: MIT + file LICENSE
URL: https://kwstat.github.io/desplot/, http://kwstat.github.io/desplot/
BugReports: https://github.com/kwstat/desplot/issues
Imports:
ggplot2,
grid,
Expand All @@ -15,11 +22,8 @@ Suggests:
knitr,
rmarkdown,
testthat
License: MIT + file LICENSE
URL: https://kwstat.github.io/desplot/
BugReports: https://github.com/kwstat/desplot/issues
VignetteBuilder:
knitr
RoxygenNote: 7.2.2
Encoding: UTF-8
Language: en-US
RoxygenNote: 7.3.2
25 changes: 13 additions & 12 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,61 @@

* Switch to MIT license.

# desplot 1.10 - Mar 2023
# desplot 1.10 (2023-03-01)

* One-row panels no longer have whitespace. Issue #9.
* Replace `aes_string(x=x.string)` with `aes(x=.data[[x.string]])` etc.

# desplot 1.9 - Oct 2021

# desplot 1.9 (2021-10-30)

* Tweaks to `ggdesplot` output.
* Remove LazyData from DESCRIPTION.


# desplot 1.8 - Oct 2020
# desplot 1.8 (2020-10-21)

* Bug fix for `dq` with multiple panels.
* Use `inherits` to check class #4.


# desplot 1.7 - Jul 2020
# desplot 1.7 (2020-07-20)

* Please use `desplot(data,formula)` instead of `desplot(formula,data)`.


# desplot 1.6 - Sep 2019
# desplot 1.6 (2019-09-13)

* New argument `dq` for showing data quality on heatmaps.


# desplot 1.5 - Apr 2019
# desplot 1.5 (2019-04-04)

* Beta version of `ggdesplot()` to create `ggplot2` graphics.

* New argument `subset` to subset data before analysis.


# desplot 1.3 - Oct 2017
# desplot 1.3 (2017-10-13)

* Bug fix.


# desplot 1.2 - Jul 2017
# desplot 1.2 (2017-07-13)

* Now using `testthat` and `covr` packages.


# desplot 1.1 - Dec 2016
# desplot 1.1 (2016-12-18)

* New function argument `midpoint="median"` uses the median to determine the midpoint for the ribbon. Previously, the midpoint was halfway between the minimum and maximum data values. Use `midpoint=NULL` or `midpoint="midrange"` to restore the old behavior.
* New function argument `midpoint="median"` uses the median to determine the midpoint for the ribbon. Previously, the midpoint was halfway between the minimum and maximum data values.


# desplot 1.0 - Dec 2015
# desplot 1.0 (2015-12-14)

* The `desplot` package has been split off from the `agridat` package.


# desplot 0.0 - 2008
# desplot 0.0 (2008)

* Original creation of function.
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
url: http://kwstat.github.io/desplot/
template:
bootstrap: 5

168 changes: 0 additions & 168 deletions docs/404.html

This file was deleted.

Binary file removed docs/apple-touch-icon-120x120.png
Binary file not shown.
Binary file removed docs/apple-touch-icon-152x152.png
Binary file not shown.
Binary file removed docs/apple-touch-icon-60x60.png
Binary file not shown.
Binary file removed docs/apple-touch-icon-76x76.png
Binary file not shown.
Binary file removed docs/apple-touch-icon.png
Binary file not shown.
Loading

0 comments on commit 630e0e5

Please sign in to comment.