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

add caret tidiers #344

Merged
merged 11 commits into from Jun 12, 2018
Merged

add caret tidiers #344

merged 11 commits into from Jun 12, 2018

Conversation

mkuehn10
Copy link
Contributor

implements #270

@mkuehn10
Copy link
Contributor Author

Failure message was
Packages suggested but not available: 'gamlss' 'ks' 'rgeos' The suggested packages are required for a complete check. Checking can be attempted without them by setting the environment variable _R_CHECK_FORCE_SUGGESTS_ to a false value. See section 'The DESCRIPTION file' in the 'Writing R Extensions' manual.

I don't think my PR has anything to do with those packages, I added caret to the DESCRIPTION for Suggests.

Copy link
Collaborator

@alexpghayes alexpghayes left a comment

Choose a reason for hiding this comment

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

Looks useful, can't wait to give it a go myself! Requested some small changes.

Not sure why the build is failing, will have to look into that next week.

#' \code{glance} method.
#'
#' @param x An object of class \code{confusionMatrix}
#' @param show_class A boolean of whether to show the values for class specific
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd use "logical" instead of boolean since that's more standard for R.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd also rename show_class to by_class.

#' to FALSE, result will only show accuracy and kappa.
#' @param ... extra arguments (not used)
#'
#' @return A data.frame with one or more of the following columns:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should return a tibble!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I need to fix the durbinWatsonTest as well then.

@alexpghayes
Copy link
Collaborator

This looks good! I'd like to merge but I need to think a little bit about the implications of adding caret to Suggests first. I'll get back to you soon!

@mkuehn10
Copy link
Contributor Author

It's giving me errors on my test script saying that str_to_lower couldn't be found, but it's from the stringr package.

@atyre2
Copy link
Contributor

atyre2 commented Jun 11, 2018

WRT to builds failing on travis-ci, this message is at the end of all the failures I"ve just checked:
The job exceeded the maximum time limit for jobs, and has been terminated.
It looks like it is taking a very long time to get the machine set up, so never gets around to testing the package.

@alexpghayes
Copy link
Collaborator

At the moment it's okay for the Travis build to fail, that's on us, but AppVeyor does need to pass. Pretty busy the next couple of days but will get back to this at some point this week.

@mkuehn10
Copy link
Contributor Author

Thanks @atyre2 I saw that as well. Thanks for the response @alexpghayes, I'll do whatever is needed to fix this, but I'm really not sure what's going on.

@alexpghayes alexpghayes merged commit bc29e0c into tidymodels:master Jun 12, 2018
@alexpghayes
Copy link
Collaborator

Awesome! Thanks for your persistence with this!

@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

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

Successfully merging this pull request may close these issues.

None yet

3 participants