File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -17,26 +17,6 @@ if (getRversion() < "3.3") {
17
17
18
18
on_load(backport_unit_methods())
19
19
20
- unitType <- function (x ) {
21
- unit <- attr(x , " unit" )
22
- if (! is.null(unit )) {
23
- return (unit )
24
- }
25
- if (is.list(x ) && is.unit(x [[1 ]])) {
26
- unit <- vapply(x , unitType , character (1 ))
27
- return (unit )
28
- } else if (" fname" %in% names(x )) {
29
- return (x $ fname )
30
- }
31
- rep(" " , length(x )) # we're only interested in simple units for now
32
- }
33
-
34
- on_load({
35
- if (" unitType" %in% getNamespaceExports(" grid" )) {
36
- unitType <- grid :: unitType
37
- }
38
- })
39
-
40
20
# isFALSE() and isTRUE() are available on R (>=3.5)
41
21
if (getRversion() < " 3.5" ) {
42
22
isFALSE <- function (x ) is.logical(x ) && length(x ) == 1L && ! is.na(x ) && ! x
You can’t perform that action at this time.
0 commit comments