Skip to content

Commit

Permalink
Merge pull request #82 from LunaSare/master
Browse files Browse the repository at this point in the history
fix bug that was returning NA instead of data frame of congruified ages
  • Loading branch information
LunaSare authored May 31, 2023
2 parents 4cc7ce6 + ce6a37a commit 4170b61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: datelife
Title: Scientific Data on Time of Lineage Divergence for Your Taxa
Version: 0.6.7
Version: 0.6.8
Maintainer: Luna L. Sanchez Reyes <sanchez.reyes.luna@gmail.com>
Authors@R: c(
person("Brian", "O'Meara", email = "bomeara@gmail.com", role=c("aut")),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
DONE:
-->
# datelife v0.6.8
- fixed bug in function `extract_calibrations_phylo`

# datelife v0.6.7
- added vignette for bold data workflow
Expand Down
2 changes: 1 addition & 1 deletion R/calibrations_extract.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ extract_calibrations_phylo <- function(input = NULL,
# Warning message:
# In if (class(stock) == "phylo") { :
# the condition has length > 1 and only the first element will be used
if (!inherits(local_df, "list")) {
if (!inherits(local_df, "data.frame")) {
warning("Congruification failed")
return(NA)
}
Expand Down

0 comments on commit 4170b61

Please sign in to comment.