Skip to content

Commit

Permalink
Merge pull request #36 from pepijn-devries/work-in-progress
Browse files Browse the repository at this point in the history
added pkgdown
  • Loading branch information
pepijn-devries authored Jan 29, 2024
2 parents c7f9f38 + e5f84ba commit b15528d
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 52 deletions.
5 changes: 4 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
^\.Rproj\.user$
^LICENSE\.md$
^\.github$
^README\.Rmd$
^README\.Rmd$
^_pkgdown\.yml$
^docs$
^pkgdown$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
48 changes: 48 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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

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@v3

- 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.Rhistory
.RData
.Ruserdata
docs
pkgdown
102 changes: 51 additions & 51 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
Package: ECOTOXr
Type: Package
Title: Download and Extract Data from US EPA's ECOTOX Database
Version: 1.0.9
Date: 2024-01-07
Authors@R: c(person("Pepijn", "de Vries", role = c("aut", "cre", "dtc"),
email = "[email protected]",
comment = c(ORCID = "0000-0002-7961-6646")))
Author:
Pepijn de Vries [aut, cre, dtc] (0000-0002-7961-6646)
Maintainer: Pepijn de Vries <[email protected]>
Description: The US EPA ECOTOX database is a freely available database
with a treasure of aquatic and terrestrial ecotoxicological data.
As the online search interface doesn't come with an API, this
package provides the means to easily access and search the database
in R. To this end, all raw tables are downloaded from the EPA website
and stored in a local SQLite database.
Depends:
R (>= 4.1.0),
RSQLite (>= 2.3.4)
Imports:
crayon (>= 1.5.2),
dbplyr (>= 2.4.0),
dplyr (>= 1.1.4),
httr2 (>= 1.0.0),
jsonlite (>= 1.8.8),
lifecycle (>= 1.0.4),
purrr (>= 1.0.2),
rappdirs (>= 0.3.3),
readr (>= 2.1.4),
readxl (>= 1.4.3),
rlang (>= 1.1.2),
rvest (>= 1.0.3),
stringr (>= 1.5.1),
tibble (>= 3.2.1),
tidyr (>= 1.3.0),
tidyselect (>= 1.2.0),
utils
Suggests:
DBI,
standartox,
testthat (>= 3.0.0),
webchem
URL: https://github.com/pepijn-devries/ECOTOXr
BugReports: https://github.com/pepijn-devries/ECOTOXr/issues
License: GPL (>= 3)
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.3
Config/testthat/edition: 3
Roxygen: list(markdown = TRUE)
Package: ECOTOXr
Type: Package
Title: Download and Extract Data from US EPA's ECOTOX Database
Version: 1.0.9
Date: 2024-01-07
Authors@R: c(person("Pepijn", "de Vries", role = c("aut", "cre", "dtc"),
email = "[email protected]",
comment = c(ORCID = "0000-0002-7961-6646")))
Author:
Pepijn de Vries [aut, cre, dtc] (0000-0002-7961-6646)
Maintainer: Pepijn de Vries <[email protected]>
Description: The US EPA ECOTOX database is a freely available database
with a treasure of aquatic and terrestrial ecotoxicological data.
As the online search interface doesn't come with an API, this
package provides the means to easily access and search the database
in R. To this end, all raw tables are downloaded from the EPA website
and stored in a local SQLite database.
Depends:
R (>= 4.1.0),
RSQLite (>= 2.3.4)
Imports:
crayon (>= 1.5.2),
dbplyr (>= 2.4.0),
dplyr (>= 1.1.4),
httr2 (>= 1.0.0),
jsonlite (>= 1.8.8),
lifecycle (>= 1.0.4),
purrr (>= 1.0.2),
rappdirs (>= 0.3.3),
readr (>= 2.1.4),
readxl (>= 1.4.3),
rlang (>= 1.1.2),
rvest (>= 1.0.3),
stringr (>= 1.5.1),
tibble (>= 3.2.1),
tidyr (>= 1.3.0),
tidyselect (>= 1.2.0),
utils
Suggests:
DBI,
standartox,
testthat (>= 3.0.0),
webchem
URL: https://github.com/pepijn-devries/ECOTOXr, https://pepijn-devries.github.io/ECOTOXr/
BugReports: https://github.com/pepijn-devries/ECOTOXr/issues
License: GPL (>= 3)
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.3
Config/testthat/edition: 3
Roxygen: list(markdown = TRUE)
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
url: https://pepijn-devries.github.io/ECOTOXr/
template:
bootstrap: 5

0 comments on commit b15528d

Please sign in to comment.