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

melt.data.frame no longer barfs with POSIXlt #69

Merged
merged 1 commit into from
Aug 26, 2015

Conversation

kevinushey
Copy link
Contributor

No description provided.

@kevinushey
Copy link
Contributor Author

@hadley no idea what this error is:

+Rscript -e 'library(devtools); library(methods); options(repos=c(CRAN="http://cran.rstudio.com")); install_github(commandArgs(TRUE), build_vignettes = FALSE)' plyr
Error in username %||% getOption("github.user") %||% stop("Unknown username.") : 
  Unknown username.
Calls: install_github -> lapply -> FUN -> %||%


// POSIXlt objects are _weird_
if (Rf_inherits(object, "POSIXlt")) {
static Function R_rep("rep", "base");
Copy link
Owner

Choose a reason for hiding this comment

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

I'd be tempted to just make this an error

Copy link
Owner

Choose a reason for hiding this comment

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

I feel comfortable throwing errors whenever you see a POSIXlt because:

class(data.frame(as.POSIXlt(Sys.time()))[[1]])
# POSIXct

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I'll copy what you did in tidyr here.

@jimhester
Copy link
Contributor

@kevinushey https://github.com/hadley/reshape/blob/master/.travis.yml#L8 needs to be ./travis-tool.sh install_github hadley/plyr rather than just plyr

This must have been written back in the old days when Hadley was the default user for devtools. 😄

added PR #70 to fix this

@kevinushey kevinushey force-pushed the bugfix/melt-POSIXlt branch 2 times, most recently from 810f19e to 6342c11 Compare August 25, 2015 16:58
@kevinushey
Copy link
Contributor Author

@jimhester thanks for looking into that! Ah, the good old days ;)

@hadley, I've updated the PR (essentially conforming with what you've done in tidyr)

@hadley
Copy link
Owner

hadley commented Aug 25, 2015

Could you please merge/rebase to get the updated .travis.yml?

@kevinushey
Copy link
Contributor Author

Done; hopefully all should be well now.

hadley added a commit that referenced this pull request Aug 26, 2015
melt.data.frame no longer barfs with POSIXlt
@hadley hadley merged commit d38539d into hadley:master Aug 26, 2015
@hadley
Copy link
Owner

hadley commented Aug 26, 2015

Thanks!

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.

3 participants