Skip to content

Missing blob? #26

@MichaelChirico

Description

@MichaelChirico

What's the proper way to represent missingness in blob?

is it a NULL element of the list vector?

as_blob(NA)

returns list(NULL)

and

as_blob(list(NULL, as.raw(0)))

returns list(NULL, as.raw(0))

but

as_blob(NA_character_)

returns list(charToRaw("NA"))

Missingness is not mentioned in the help anywhere, nor in the README. Is missingness intended to be supported? Is the as_blob(NA_character_) result a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions