-
Notifications
You must be signed in to change notification settings - Fork 7
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
demo/ggplot2Example does not work #131
Comments
Is it worth making this functionality a core part of the package, and including official tests to prevent regression? |
I can get this to work if I remove the type check and also remove anything to do with time zones. |
Ack. This may just need to be withdrawn. |
@lsilvest My memory is foggy but we seem to have taken this from your repo at lsilvest/nanotime_ggplot. Have you by chance revisited 'scales' for ggplot2 for nanotime? |
There is a micro-error in the demo file: modified demo/ggplot2Example.R
@@ -12,7 +12,7 @@ if (requireNamespace("ggplot2", quietly=TRUE) &&
nanotime_format <- function(format = getOption("nanotimeFormat", default="%Y-%m-%dT%H:%M:%EXS%Ez"),
tz = getOption("nanotimeTz", default="UTC")) {
- function(x) format(x, format, tz=tz)
+ function(x) format(x, format, tz)
}
but even with that fixed, and running under Ubuntu 20.04 "focal" as a test (to get an older ggplot2) I get an error: Error in validate_guide(guide) : Unknown guide I think it may be best to just quietly retire this demo file. One can plot with nanotime by running as.POSIXct() over the column first. |
On one hand I think retiring it would be a shame, but on the other hand, this package isn't really about supporting visualisations from other packages so makes sense to retire. |
Yes, I imagine there's been some changes in |
We are coming up to a new CRAN release and I plan to skip shipping the example file there. It needs a bigger update, and maybe these days there are other ggplot2 helper packages for scale manipulation that we can lean on. Another time. |
At least not with the latest version of ggplot2 (3.5.1)
Even the test in the demo fails
fails with
Error: Invalid input: nanotime_trans works with objects of class nanotime only
The failure happens at this check
The text was updated successfully, but these errors were encountered: