Skip to content

Commit bb9f28f

Browse files
committed
call setOldClass() for blobs
- The blob class can now be used for S4 dispatch.
1 parent ff1d71c commit bb9f28f

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Description: R's raw vector is useful for storing a single binary object.
1111
package provides the blob object, a list of raw vectors, suitable for
1212
use as a column in data frame.
1313
Imports:
14+
methods,
1415
tibble
1516
License: GPL-3
1617
Encoding: UTF-8

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ S3method(type_sum,blob)
2020
export(as.blob)
2121
export(blob)
2222
export(new_blob)
23+
importFrom(methods,setOldClass)
2324
importFrom(tibble,is_vector_s3)
2425
importFrom(tibble,obj_sum)
2526
importFrom(tibble,type_sum)

R/blob.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#' @importFrom methods setOldClass
2+
setOldClass("blob")
3+
14
#' Construct a blob object
25
#'
36
#' \code{new_blob} is a low-level constructor that takes a list of

0 commit comments

Comments
 (0)