tidyverts / fabletools

General fable features useful for extension packages
http://fabletools.tidyverts.org/
89 stars 31 forks source link

error loading fabletools with recent github commits of ggplot2 #380

Closed EconProf closed 10 months ago

EconProf commented 1 year ago

This happens with development versions of ggplot2 starting with "Convert guides to ggproto (#4879)" on April 24.

library(fabletools)
#> Error: package or namespace load failed for 'fabletools':
#>  object 'guide_geom' is not exported by 'namespace:ggplot2'

Created on 2023-06-03 with reprex v2.0.2

EconProf commented 1 year ago

With more recent changes to ggplot2 3.4.2.9000, the fabletools package can be loaded but autoplot() of a fable gives this error

fit |> filter(Country == "Sweden") |> forecast(h = "3 years") |> autoplot() Error in if (guide$reverse) key <- key[nrow(key):1, ] : argument is of length zero In addition: Warning message: The S3 guide system was deprecated in ggplot2 3.5.0. ℹ It has been replaced by a ggproto system that can be extended. ℹ The deprecated feature was likely used in the fabletools package. Please report the issue at https://github.com/tidyverts/fabletools/issues. This warning is displayed once every 8 hours.

EconProf commented 10 months ago

All is well with the release of ggplot2 version 3.4.3