-
Notifications
You must be signed in to change notification settings - Fork 37
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
add some base/S3 classes #434
Merged
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
e451a87
add base/S3 classes for name, call, language, POSIXt, POSIXlt, matrix…
lawremi 3f2e9be
allow dimensions of zero length on arrays and matrices
lawremi fcf43e2
POSIXct and POSIXlt inherit from POSIXt
lawremi 46259fc
use quote(x) as default for class_name, as the missing symbol was too…
lawremi c466db5
Add mappings for name, call and all of the basic S3 types to S4_base_…
lawremi b35e2f0
S4_to_S7_class() returns new_S3_class()es for oldClasses defined in m…
lawremi ac419f1
nrow= defaults to length(.data) for matrix construction for convenien…
lawremi e110938
Merge branch 'main' into more-classes
t-kalinowski c0819ad
Update R/S3.R
t-kalinowski ebfceb9
Add tests for base and base-S3 classes
t-kalinowski 5a9905c
changes to make tests pass
t-kalinowski 223074e
redocument
t-kalinowski d6a4eae
show `dim` in `print()`
t-kalinowski bf3e7f3
additional tweaks
t-kalinowski 68c0de2
Accept a `factor` in `class_factor()` constructor.
t-kalinowski 99407ca
update test snapshots
t-kalinowski 0caa992
Merge branch 'main' into more-classes
t-kalinowski b3bd5ad
Validate factors all positive
t-kalinowski 838e258
add NEWS
t-kalinowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use >= : we do want to allow 0x0 but also nx0 etc. NB same for array validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is referring to the checks on
dim()
. Yes, good catch. The error message even says "non-negative." Of course, it is impossible to set the "dim" attribute on any R object to a negative value outside of C. I guess this would catch alternative matrix implementations that overridedim()
and end up in an invalid state, which is really their problem, not ours.