-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from NOAA-EDAB/andy_ghpages
deploy pkgdown to ghpages
- Loading branch information
Showing
674 changed files
with
807 additions
and
83,158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: gh-pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
|
||
jobs: | ||
pkgdown: | ||
runs-on: macOS-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- name: Query dependencies | ||
run: | | ||
install.packages('remotes') | ||
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) | ||
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") | ||
shell: Rscript {0} | ||
|
||
- name: Cache R packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.R_LIBS_USER }} | ||
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} | ||
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- | ||
|
||
|
||
- name: Install binary dependencies | ||
if: runner.os != 'Linux' | ||
run: | | ||
remotes::install_deps(dependencies = TRUE, type="binary") | ||
shell: Rscript {0} | ||
|
||
- name: Install pkgdown | ||
run: | | ||
install.packages("pkgdown", type = "binary") | ||
shell: Rscript {0} | ||
|
||
- name: Install package | ||
run: R CMD INSTALL . | ||
|
||
- name: Deploy package | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ inst/doc | |
.RData | ||
.Ruserdata | ||
.DS_Store | ||
|
||
# folders | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
Package: ecodata | ||
Title: Documentation of Ecosystem Indicator Reporting | ||
Version: 0.1.0 | ||
Authors@R: c(person("Kimberly", "Bastille", email = "[email protected]", role = c("cre", "aut")), | ||
Authors@R: c(person("Brandon", "Beltz", email = "[email protected]", role = c("cre", "aut")), | ||
person("Kimberly", "Bastille", email = "[email protected]", role = "aut"), | ||
person("Sean", "Hardison", role = "aut")) | ||
Description: A data package for reporting on Northeast Continental Shelf ecosystem status and trends. | ||
License: file LICENSE | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Roxygen: list(markdown = TRUE) | ||
Date: 2018-10-24 | ||
Suggests: | ||
Suggests: | ||
knitr, | ||
rmarkdown, | ||
dplyr, | ||
|
@@ -22,8 +23,9 @@ Suggests: | |
usethis, | ||
AICcmodavg, | ||
mgcv, | ||
zoo | ||
zoo, | ||
rlang | ||
VignetteBuilder: knitr | ||
RoxygenNote: 7.1.2 | ||
RoxygenNote: 7.2.3 | ||
Depends: | ||
R (>= 2.10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#' hp_density | ||
#' | ||
#' What is it? | ||
#' | ||
#' @format A data set containing 6244 rows and 5 columns. | ||
#' | ||
#' \itemize{ | ||
#' \item {Latitude}{Latitude} | ||
#' \item {Longitude}{Longitude} | ||
#' \item {Value}{Value} | ||
#' \item {Bin}{??} | ||
#' \item {Season}{???} | ||
#' | ||
#' } | ||
#' | ||
#' @details More information available at \url{link to techdoc} | ||
"hp_density" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#' longline survey | ||
#' | ||
#' What is it? | ||
#' | ||
#' @format A data set containing 96 rows and 8 columns. | ||
#' | ||
#' \itemize{ | ||
#' \item {Cruise}{Latitude} | ||
#' \item {Station}{Longitude} | ||
#' \item {Year}{Value} | ||
#' \item {Common_name}{??} | ||
#' \item {Deceg_beglat_set}{???} | ||
#' \item {Deceg_beglon_set}{???} | ||
#' \item {categ}{???} | ||
#' | ||
#' } | ||
#' | ||
#' @details More information available at \url{link to techdoc} | ||
"long_line_survey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#' Longline survey sf index ????? | ||
#' | ||
#' | ||
#' | ||
#' @format Simple feature collection with 6 features and 7 fields | ||
#' | ||
#' \itemize{ | ||
#' \item geometry: yearly spatial feature for the longline survey. | ||
#' | ||
#' } | ||
#' | ||
#' @details More information available at \url{??} | ||
"longlinesurvey_sf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#' lps_sharks ??? | ||
#' | ||
#' What is it? | ||
#' | ||
#' @format A data set containing 90 rows and 5 columns. | ||
#' | ||
#' \itemize{ | ||
#' \item {Time}{???} | ||
#' \item {Var}{???} | ||
#' \item {Value}{???} | ||
#' \item {EPU}{??} | ||
#' \item {Units}{???} | ||
#' | ||
#' } | ||
#' | ||
#' @details More information available at \url{link to techdoc} | ||
"lps_sharks" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.