Skip to content

Commit

Permalink
Merge branch 'release-0.1.17'
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewHeun committed Nov 15, 2023
2 parents fd5d92d + 3f2d6ee commit bba2e9c
Show file tree
Hide file tree
Showing 16 changed files with 99 additions and 59 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: PFUSetup
Title: Functions to Set Up the Directory Structure of the PFU Database
Version: 0.1.16
Date: 2023-11-06
Version: 0.1.17
Date: 2023-11-15
Authors@R:
person(given = "Matthew",
family = "Heun",
Expand Down
14 changes: 13 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ output: html_document
Cite all releases with doi [10.5281/zenodo.5228359](https://doi.org/10.5281/zenodo.5228359),
which always resolves to the latest release.

# PFUSetup 0.1.16

# PFUSetup 0.1.17 (2023-11-15)

* Changed name of tab in versions and products.xlsx file.
* No new tests.
- Still at 77 tests, all passing.
- Test coverage remains at 100%.


# PFUSetup 0.1.16 (2023-11-11) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10114842.svg)](https://doi.org/10.5281/zenodo.10114842)

* `pin_versions()` now moved to package PFUPipelineTools.
* Paths to Exiobase energy flows now added.
* New tests for new functions.
- Now at 77 tests, all passing.
- Test coverage remains at 100%.


# PFUSetup 0.1.15 [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10059871.svg)](https://doi.org/10.5281/zenodo.10059871)
Expand Down
6 changes: 3 additions & 3 deletions R/pin_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' that contains a concordance table of versions
#' and pin names.
#' Default is `get_abs_paths()[["versions_and_products_path"]]`.
#' @param version_table_tab The name of the `version_table` tab in the
#' @param product_table_tab The name of the `version_table` tab in the
#' versions and products file.
#' Default is "version_table".
#' @param product_column The name of the product column in the version table.
Expand All @@ -32,15 +32,15 @@
#' pin_versions(1.1)
pin_versions <- function(database_version,
versions_and_products_path = get_abs_paths()[["versions_and_products_path"]],
version_table_tab = "version_table",
product_table_tab = "product_table",
product_column = "product",
pin_name_column = "pin_name") {
if (is.numeric(database_version)) {
database_version <- paste0("v", database_version)
}

# Get the version table.
cols <- readxl::read_excel(path = versions_and_products_path, sheet = version_table_tab) |>
cols <- readxl::read_excel(path = versions_and_products_path, sheet = product_table_tab) |>
dplyr::select(dplyr::any_of(c(pin_name_column, database_version)))

if (!(database_version %in% names(cols))) {
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 23 additions & 3 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ pandoc: 3.1.1
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
last_built: 2023-10-31T23:40Z
last_built: 2023-11-15T14:46Z

Loading

0 comments on commit bba2e9c

Please sign in to comment.