Skip to content

Commit

Permalink
Merge pull request #18 from CeresBarros/16-update-module-author-infom…
Browse files Browse the repository at this point in the history
…etadata

16 update module author info/metadata
  • Loading branch information
CeresBarros authored Aug 30, 2023
2 parents 9f59072 + c2b3a34 commit d94b9df
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/render-bookdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:

- uses: actions/upload-artifact@v2
with:
name: _book
path: _book/
name: docs
path: docs/


checkout-and-deploy:
Expand All @@ -69,14 +69,14 @@ jobs:
uses: actions/download-artifact@v2
with:
# Artifact name
name: _book # optional
name: docs # optional
# Destination path
path: _book # optional
path: docs/ # optional

- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
build_dir: _book
build_dir: docs/
branch: gh-pages
6 changes: 3 additions & 3 deletions Part2_SDMs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Authors: Ceres Barros, Alex M. Chubaty

``` {r setup, include = FALSE}
projDir <- getwd() ## save this for later
rmdDir <- "~/SpaDES4Dummies_Part2"
rmdDir <- "~/SpaDES4Dummies_Part2" ## same as mainPath below.
dir.create(rmdDir)
knitr::opts_knit$set(
root.dir = rmdDir
Expand Down Expand Up @@ -130,8 +130,8 @@ mods <- list.files(file.path(projDir, "modules"), full.names = TRUE)
sapply(mods, function(mod, to) {
to <- file.path(to, basename(mod))
dir.create(to, showWarnings = FALSE)
ff <- list.files(mod, recursive = TRUE, full.names = TRUE)
file.copy(ff, to, recursive = TRUE, overwrite = TRUE)
ff <- list.files(mod, full.names = TRUE) ## don't recurse into dirs to preserve structure
file.copy(ff, to, recursive = TRUE, overwrite = TRUE) ## now recurse to copy files in dirs
}, to = getPaths()$modulePath)
rm(mods)
```
Expand Down
3 changes: 2 additions & 1 deletion modules/projectSpeciesDist/projectSpeciesDist.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ defineModule(sim, list(
name = "projectSpeciesDist",
description = "",
keywords = "",
authors = structure(list(list(given = c("Ceres"), family = "Barros", role = c("aut", "cre"), email = "[email protected]", comment = NULL)), class = "person"),
authors = structure(list(list(given = c("Ceres"), family = "Barros",
role = c("aut", "cre"), email = "[email protected]", comment = NULL)), class = "person"),
childModules = character(0),
version = list(projectSpeciesDist = "1.0.0"),
timeframe = as.POSIXlt(c(NA, NA)),
Expand Down
3 changes: 2 additions & 1 deletion modules/speciesAbundance/speciesAbundance.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ defineModule(sim, list(
name = "speciesAbundance",
description = "",
keywords = "",
authors = person("Me", email = "[email protected]", role = c("aut", "cre")),
authors = structure(list(list(given = c("Ceres"), family = "Barros",
role = c("aut", "cre"), email = "[email protected]", comment = NULL)), class = "person"),
childModules = character(0),
version = list(speciesAbundance = "1.0.0"),
timeframe = as.POSIXlt(c(NA, NA)),
Expand Down
3 changes: 2 additions & 1 deletion modules/speciesAbundanceData/speciesAbundanceData.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ defineModule(sim, list(
description = paste("Data module to prepare tree species cover data for species distribution modelling.",
"Defaults to using Canadian National Forest Inventory data."),
keywords = c("minimal SpaDES example", "species distribution model"),
authors = structure(list(list(given = c("Ceres"), family = "Barros", role = c("aut", "cre"), email = "[email protected]", comment = NULL)), class = "person"),
authors = structure(list(list(given = c("Ceres"), family = "Barros", role = c("aut", "cre"),
email = "[email protected]", comment = NULL)), class = "person"),
childModules = character(0),
version = list(speciesAbundanceData = "1.0.0"),
timeframe = as.POSIXlt(c(NA, NA)),
Expand Down
3 changes: 2 additions & 1 deletion modules/speciesTempLM/speciesTempLM.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ defineModule(sim, list(
name = "speciesTempLM",
description = "Statistical analysis of species ~ temperature relationships using LM",
keywords = c("linear model"),
authors = person("Me", email = "[email protected]", role = c("aut", "cre")),
authors = structure(list(list(given = c("Ceres"), family = "Barros",
role = c("aut", "cre"), email = "[email protected]", comment = NULL)), class = "person"),
childModules = character(0),
version = list(speciesTempLM = "1.0.0"),
timeframe = as.POSIXlt(c(NA, NA)),
Expand Down
3 changes: 2 additions & 1 deletion modules/temperature/temperature.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ defineModule(sim, list(
name = "temperature",
description = "Temperature simulator",
keywords = c("temperature", "gaussian", "spatial"),
authors = person("Me", email = "[email protected]", role = c("aut", "cre")),
authors = structure(list(list(given = c("Ceres"), family = "Barros",
role = c("aut", "cre"), email = "[email protected]", comment = NULL)), class = "person"),
childModules = character(0),
version = list(temperature = "1.0.0"),
timeframe = as.POSIXlt(c(NA, NA)),
Expand Down

0 comments on commit d94b9df

Please sign in to comment.