Skip to content

Commit

Permalink
Avoid annoying warnings from dplyr package when species_params is a…
Browse files Browse the repository at this point in the history
… tibble.
  • Loading branch information
gustavdelius committed Jun 7, 2020
1 parent 73c3300 commit c268f39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
works also when model has extra components.
* The critical feeding level lines are now mentioned in the legend of
`plotFeedinglevel()` when called with `include_critical = TRUE`, see #162.
* Avoid annoying warnings from dplyr package when `species_params` is a tibble.

## Name changes

Expand Down
2 changes: 1 addition & 1 deletion R/species_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ get_ks_default <- function(params) {
#' @concept("helper")
validSpeciesParams <- function(species_params) {
assert_that(is.data.frame(species_params))

species_params <- as.data.frame(species_params)
if (!("species" %in% colnames(species_params))) {
stop("The species params dataframe needs a column 'species' with the species names")
}
Expand Down
1 change: 1 addition & 0 deletions docs/dev/news/index.html

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

0 comments on commit c268f39

Please sign in to comment.