Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Water
dataRetrieval
Commits
9be85ee7
Commit
9be85ee7
authored
Sep 10, 2021
by
Laura A DeCicco
Browse files
try this
parent
08ee437d
Changes
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/pkgdown.yaml
View file @
9be85ee7
...
@@ -6,38 +6,41 @@ name: pkgdown
...
@@ -6,38 +6,41 @@ name: pkgdown
jobs
:
jobs
:
pkgdown
:
pkgdown
:
runs-on
:
macOS-latest
runs-on
:
ubuntu-18.04
env
:
RSPM
:
https://packagemanager.rstudio.com/cran/__linux__/bionic/latest
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
uses
:
r-lib/actions/setup-r@master
-
uses
:
r-lib/actions/setup-r@v1
id
:
install-r
-
uses
:
r-lib/actions/setup-pandoc@
master
-
uses
:
r-lib/actions/setup-pandoc@
v1
-
name
:
Q
uery dependencies
-
name
:
Install pak and q
uery dependencies
run
:
|
run
:
|
install.packages(
c('remotes')
)
install.packages(
"pak", repos = "https://r-lib.github.io/p/pak/dev/"
)
saveRDS(
remotes::dev_package_deps(
dependencies = TRUE), ".github/depends.
R
ds"
, version = 2
)
saveRDS(
pak::pkg_deps("local::.",
dependencies = TRUE), ".github/
r-
depends.
r
ds")
shell
:
Rscript {0}
shell
:
Rscript {0}
-
name
:
Cache R packages
uses
:
actions/cache@v1
-
name
:
Install system dependencies
with
:
if
:
runner.os == 'Linux'
path
:
${{ env.R_LIBS_USER }}
run
:
|
key
:
macOS-r-4.0-3-${{ hashFiles('.github/depends.Rds') }}
pak::local_system_requirements(execute = TRUE)
restore-keys
:
macOS-r-4.0-3-
pak::pkg_system_requirements("pkgdown", execute = TRUE)
shell
:
Rscript {0}
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
options(pkgType = "binary")
pak::local_install_dev_deps(upgrade = TRUE, dependencies = c("all", "Config/Needs/website"))
install.packages(c("remotes", "dplyr", "purrr", "ggplot2", "maptools", "sp", "maps", "rgdal", "leaflet", "sf", "zoo", "udunits2", "patchwork"))
pak::pkg_install("pkgdown")
remotes::install_deps(dependencies = TRUE)
remotes::install_dev("pkgdown")
shell
:
Rscript {0}
shell
:
Rscript {0}
-
name
:
Install package
-
name
:
Install package
run
:
R CMD INSTALL .
run
:
R CMD INSTALL .
-
name
:
Deploy package
-
name
:
Deploy package
run
:
|
run
:
|
Sys.setenv(CI = FALSE)
Sys.setenv(CI = FALSE)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment