From ce6a37a140e319993f8b4baff377f7f2fca73f25 Mon Sep 17 00:00:00 2001 From: Luna Sare Date: Tue, 30 May 2023 17:14:25 -0700 Subject: [PATCH] fix bug that was returning NA instead of ages --- DESCRIPTION | 2 +- NEWS.md | 2 ++ R/calibrations_extract.R | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 440eeca0..60470df8 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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 Authors@R: c( person("Brian", "O'Meara", email = "bomeara@gmail.com", role=c("aut")), diff --git a/NEWS.md b/NEWS.md index 1e757257..a9229596 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/R/calibrations_extract.R b/R/calibrations_extract.R index 9f2ea50f..1b39cdfa 100644 --- a/R/calibrations_extract.R +++ b/R/calibrations_extract.R @@ -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) }