We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf0c35 commit 3cbccfcCopy full SHA for 3cbccfc
R/ggplotly.R
@@ -1157,11 +1157,8 @@ verifyUnit <- function(u) {
1157
# Use public API for getting the unit's type, if available
1158
# https://github.com/ropensci/plotly/pull/1646#issue-331268260
1159
getUnitType <- function(u) {
1160
- if (getRversion() >= "4.0.0") {
1161
- get("unitType", envir = asNamespace("grid"))(u)
1162
- } else {
+ tryNULL(get("unitType", envir = asNamespace("grid"))) %||%
1163
attr(u, "unit")
1164
- }
1165
}
1166
1167
# detect a blank theme element
0 commit comments