Skip to content

Commit dda1b67

Browse files
committed
fixed R check
1 parent 4e78b72 commit dda1b67

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: tidytree
22
Title: A Tidy Tool for Phylogenetic Tree Data Manipulation
3-
Version: 0.4.5.001
3+
Version: 0.4.6
44
Authors@R: c(
55
person("Guangchuang", "Yu", email = "[email protected]", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0002-6485-8781")),
66
person("Bradley", "Jones", email = "[email protected]", role = "ctb"),

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ importFrom(methods,isClass)
179179
importFrom(methods,new)
180180
importFrom(methods,representation)
181181
importFrom(methods,setClass)
182+
importFrom(methods,setClassUnion)
182183
importFrom(methods,setGeneric)
183184
importFrom(methods,setOldClass)
184185
importFrom(methods,show)

NEWS.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# tidytree 0.4.5.001
1+
# tidytree 0.4.6
22

3+
+ import `methods::setClassUnion()` to fix R check (2023-12-12, Tue)
34
+ check before `setOldClass()`, which suppose to fix the #47 issue (2023-11-29, Wed)
45

56
# tidytree 0.4.5

R/AllClasses.R

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ if (!isClass("phylo")) setOldClass("phylo")
66
if (!isClass("DNAbin")) setOldClass("DNAbin")
77
if (!isClass("AAbin")) setOldClass("AAbin")
88

9+
#' @importFrom methods setClassUnion
910
setClassUnion("DNAbin_Or_AAbin", c("DNAbin", "AAbin", "NULL"))
1011

1112
##' Class "treedata"

0 commit comments

Comments
 (0)