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

Why is src() in this package? #26

Closed
krlmlr opened this issue Jan 26, 2016 · 3 comments
Closed

Why is src() in this package? #26

krlmlr opened this issue Jan 26, 2016 · 3 comments
Milestone

Comments

@krlmlr
Copy link
Member

krlmlr commented Jan 26, 2016

No description provided.

@krlmlr krlmlr added this to the 1.0 milestone Jan 26, 2016
@krlmlr
Copy link
Member Author

krlmlr commented Jan 26, 2016

src.r + src-local.r + same_src.data.frame() + test-src.r can (and should) be removed.

@krlmlr
Copy link
Member Author

krlmlr commented Jan 26, 2016

The original reason why I added src() is related to the "tbl" class: The tbl() constructor uses a "src" as dispatch argument.

Now, the only methods that have an implementation for "tbl" are glimpse() and as.tbl(); to me, it looks like glimpse.tbl should really be glimpse.tbl_df instead (#27). When this is done, tbl.r (and two tests) can be removed, too.

@krlmlr krlmlr closed this as completed in 7548971 Feb 29, 2016
krlmlr pushed a commit that referenced this issue Mar 1, 2016
- Functions related to `tbl` and `src` stay in `dplyr` (#26).
- `data_frame(NULL)` raises error "must be a 1d atomic vector or list".
krlmlr pushed a commit that referenced this issue Mar 2, 2016
- Functions related to `tbl` and `src` stay in `dplyr` (#26). Remove unused `make_tbl()`.
- Non-scalar input to `frame_data()` and `tibble()` (including lists) creates list-valued columns (#7).
- Use C++ implementation for `as_data_frame.matrix()` (#14). Also add former `matrixToDataFrame()` tests, and fix unwanted conversion to factor.
- `as_data_frame(NULL)` is 0-row 0-column data frame (#17, @jennybc). `frame_data()` and `tibble()` create empty `data_frame` if no rows are given (#20).
- `data_frame(NULL)` raises error "must be a 1d atomic vector or list".
- `lst(NULL)` doesn't raise an error anymore (#17, @jennybc), but always uses deparsed expression as name (even for `NULL`).
- `trunc_mat()` and `print()` use `width` argument also for zero-row and zero-column data frames (#18).
- `glimpse()` now (invisibly) returns `x`, so it can be used within a chain of `dplyr` verbs (@edwindj).
- `base::getElement()` now works with tibbles (#9).
- Remove spurious usage of "dplyr" in documentation (#3).
- Almost full test coverage.
@github-actions
Copy link
Contributor

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant