Skip to content

Commit

Permalink
Update classes.R
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig authored May 6, 2024
1 parent 9f66e55 commit f94903a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions R/classes.R
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,14 @@ setClass("ListOfnode", slots = c(names="character"),

################################## actually AbstractTree

# No longer required in R >= 4.2.0
## Thanks Gabor for work-around from S4 namespaces collision issue
# https://github.com/ropensci/RNeXML/issues/251#issuecomment-1031996431
tryCatch({
rlang::env_unlock(asNamespace("cli"))
removeClass("tree", asNamespace("cli"))
rlang::env_lock(asNamespace("cli"))
}, error = function(err) NULL)
#tryCatch({
# rlang::env_unlock(asNamespace("cli"))
# removeClass("tree", asNamespace("cli"))
# rlang::env_lock(asNamespace("cli"))
#}, error = function(err) NULL)

setClass("tree",
slots = c(node = "ListOfnode",
Expand Down

0 comments on commit f94903a

Please sign in to comment.