Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define OBJSXP #128

Closed
wants to merge 25 commits into from
Closed

define OBJSXP #128

wants to merge 25 commits into from

Conversation

t-kalinowski
Copy link

@t-kalinowski t-kalinowski commented Jun 7, 2023

  • add OBJSXP as an alias for S4SXP
  • make dput() and print() do something sensible on an OBJSXP when the S4 bit is not set
  • typeof() returns "object" on an OBJSXP if the S4 bit is unset
  • .Internal(inspect(x)) prints OBJSXP instead of S4SXP if the S4 bit is unset

Also, this PR adds a base::object() constructor that returns an OBJSXP with the S4 bit unset. This is mainly for testing and experimentation purposes, and I'm not currently thinking it should be added to base R. The code for the constructor is commented out, since it's not clear if this is a good thing to add to base R presently.

@t-kalinowski
Copy link
Author

This is merged into master now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant