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

transition odbcDataType() to S4 #756

Merged
merged 3 commits into from
Jan 30, 2024
Merged

transition odbcDataType() to S4 #756

merged 3 commits into from
Jan 30, 2024

Conversation

simonpcouch
Copy link
Collaborator

Closes #701.🐙

@@ -49,6 +49,7 @@ RoxygenNote: 7.3.0
SystemRequirements: GNU make, An ODBC3 driver manager and drivers.
Collate:
'RcppExports.R'
'aaa-odbc-data-type.R'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😞

I wasn't able to find any other places where we needed a workaround to define generics before methods. We could also just delete this file and place its contents in odbc-connection.R?

#'
#' `odbcDataType.foo <- function(con, obj, ...) {
#' switch_type(obj,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example used this unexported switch_type() helper. If we wanted to keep this example, we could export switch_type(), but us never having received an issue related to this makes me wonder if folks ever used this code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't think there's a compelling reason to keep including this example.

@simonpcouch simonpcouch requested a review from hadley January 30, 2024 18:25
Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR slaps. Fact. 🚫🧢.

#'
#' `odbcDataType.foo <- function(con, obj, ...) {
#' switch_type(obj,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't think there's a compelling reason to keep including this example.

@simonpcouch simonpcouch merged commit e5abba9 into main Jan 30, 2024
@simonpcouch simonpcouch deleted the odbcDataType-701 branch January 30, 2024 21:53
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.

Switch odbcDataType to S4
2 participants