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

New format_dataset() and format_table() #81

Merged
merged 12 commits into from
Jan 29, 2016
Merged

New format_dataset() and format_table() #81

merged 12 commits into from
Jan 29, 2016

Conversation

krlmlr
Copy link
Member

@krlmlr krlmlr commented Jan 26, 2016

as complement to parse_*().

@craigcitro: Okay to create a new file for these functions and move them out of utils.R? If not, I'll revert that particular change before adding tests.

#' @family identifier functions
#' @export
parse_dataset <- function(dataset, project_id = NULL) {
assert_that(is.string(dataset), is.null(project_id) || is.string(project_id))
Copy link
Collaborator

Choose a reason for hiding this comment

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

small nit: i think this is easier to read when each assertion is on its own line, eg

assert_that(is.string(dataset),
            is_null(project_id) || is.string(project_id))

@craigcitro
Copy link
Collaborator

LGTM to me modulo comments above.

totally fine with moving these all out of utils.R.

@krlmlr
Copy link
Member Author

krlmlr commented Jan 29, 2016

Addressed your comments and added tests.

Kirill Müller added 3 commits January 29, 2016 09:31
@craigcitro
Copy link
Collaborator

LGTM, happy to resolve the other bits separately

craigcitro added a commit that referenced this pull request Jan 29, 2016
New format_dataset() and format_table()
@craigcitro craigcitro merged commit 806dd83 into r-dbi:master Jan 29, 2016
@krlmlr krlmlr deleted the feature/format branch January 29, 2016 20:34
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.

2 participants