Skip to content

Commit

Permalink
Remove is_vector_s3() method, close #19.
Browse files Browse the repository at this point in the history
  • Loading branch information
gorcha committed Feb 22, 2021
1 parent b0b4809 commit af0eeb1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dialr
Title: Parse, Format, and Validate International Phone Numbers
Version: 0.3.2.9000
Version: 0.3.2.9001
Authors@R:
c(person(given = "Danny",
family = "Smith",
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

* Move rJava initialisation to `.onLoad()` instead of `.onAttach()` (#16). Since dialr is a wrapper for a Java package, rJava has to initialise Java before it will work. Previously, users had to attach dialr with `library(dialr)` to properly initialise Java. Now rJava is initialised when the package is loaded/referenced, so dialr functions can now be used with the `::` notation (e.g. `dialr::phone()`) without a preceding call to `library()`.

* Remove `is_vector_s3()` method at the pillar maintainer's request (#19).

# dialr 0.3.2

* Bump minimum supported version following R 4.0.0 release.
Expand Down
3 changes: 0 additions & 3 deletions R/pillar.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ pillar_shaft.phone <- function(x, ...) {
pillar::new_pillar_shaft_simple(out, align = "right")
}

# Dynamically exported, see zzz.R
is_vector_s3.phone <- function(x) TRUE

# Dynamically exported, see zzz.R
obj_sum.phone <- function(x) {
paste0("phone [", length(x), "]")
Expand Down
1 change: 0 additions & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# Dynamically register S3 methods if pillar is installed
register_s3_method("pillar", "pillar_shaft", "phone")
register_s3_method("pillar", "type_sum", "phone")
register_s3_method("pillar", "is_vector_s3", "phone")
register_s3_method("pillar", "obj_sum", "phone")

# initialise rJava
Expand Down

0 comments on commit af0eeb1

Please sign in to comment.