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

no applicable method for 'escape' applied to an object of class "c('POSIXct', 'POSIXt')" #857

Closed
wush978 opened this issue Dec 26, 2014 · 3 comments
Labels
Milestone

Comments

@wush978
Copy link

@wush978 wush978 commented Dec 26, 2014

At first, I want to thank your hard work of developing dplyr package to the R community. This is one of the best package to do data manipulation in R and it does a lot of helps in my work.

Recently, I am trying the database API and filter a datetime column in PostgreSQL. I have the following error message:

> filter(hourly_rps_mode, time == time_value)
Error in UseMethod("escape") : 
  no applicable method for 'escape' applied to an object of class "c('POSIXct', 'POSIXt')"

It could be fixed easily by:

escape.POSIXt <- dplyr:::escape.Date

Could you add this to the package?

eibanez added a commit to eibanez/dplyr that referenced this issue May 6, 2015
@hadley hadley added this to the 0.5 milestone May 19, 2015
@hadley hadley closed this in #1128 Aug 24, 2015
@hadley hadley reopened this Aug 24, 2015
@nelsonauner
Copy link

@nelsonauner nelsonauner commented Dec 11, 2015

👍 I still encounter this error and am able to fix it in the way described by @wush978

@hadley
Copy link
Member

@hadley hadley commented Mar 7, 2016

For maximum compatibility, need to convert to ISO 8601 in UTC.

@hadley hadley closed this in 963195a Mar 7, 2016
@dbuijs
Copy link

@dbuijs dbuijs commented May 26, 2016

Had the error this morning on dplyr 0.4.3, connecting to postgresql 9.3, with RPostgreSQL 0.4, doing a filter operation on a POSIXct column (or something that RPostgreSQL turns into a POSIXct column)..

Work around described by @wush978 above addressed the issue.

If the patch applied on Mar 7 hasn't yet been applied to the CRAN version of dplyr, then please disregard.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants