Thanks to visit codestin.com
Credit goes to github.com

Skip to content

S3 check error #203

@ElianHugh

Description

@ElianHugh

Hi again!

I was wondering whether it was possible to bypass or force the value of the s3 check in S3.r?

{Typed} exports a function as_assertion_factory, which modifies and spits out an assertion function for use in type checking. However, sourcing a module with as_assertion_factory in it results in the error:
Error in is_S3(b[[1L]]) || is_S3(b[-1L]) : invalid 'x' type in 'x || y'.
This occurs no matter what the supplied function is to the as_assertion_factory function.

This had actually been working last year, so it seems like a regression with {typed} or {box}, but I haven't been able to pinpoint what change in {box} or {typed} caused this to occur :(

I've tried to do some sneaky workarounds, like running as_assertion_factory in the on load hook, but ideally I'd like to not touch the globalenv.

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions