mitchelloharawild/fable.prophet

Errors When Running README Example

realauggieheschmeyer opened this issue · 2 comments

Hello! I'm running into two different errors when trying to run the example code from the README.

The first of these is that when I try to run remotes::install_github("mitchelloharawild/fable.prophet") I get a message that prophet is not available. I wonder if this has anything to do with prophet being temporarily unavailable on CRAN.

The second issue I run into is that tsibbledata::aus_retail is being detected as "a corrupt tsibble object."

Any thoughts on what I can do to remedy these issues? Please and thank you.

remotes::install_github("mitchelloharawild/fable.prophet")
#> Downloading GitHub repo mitchelloharawild/fable.prophet@master
#> Skipping 1 packages not available: prophet
#>      checking for file ‘/private/var/folders/jm/3kpdk9cn29x_x8ht1tkcy_9c0000gn/T/RtmpJh5IaQ/remotes613f5d7be801/mitchelloharawild-fable.prophet-c5dac6b/DESCRIPTION’ ...  ✓  checking for file ‘/private/var/folders/jm/3kpdk9cn29x_x8ht1tkcy_9c0000gn/T/RtmpJh5IaQ/remotes613f5d7be801/mitchelloharawild-fable.prophet-c5dac6b/DESCRIPTION’
#>   ─  preparing ‘fable.prophet’:
#>      checking DESCRIPTION meta-information ...  ✓  checking DESCRIPTION meta-information
#>   ─  checking for LF line-endings in source and make files and shell scripts
#>   ─  checking for empty or unneeded directories
#>   ─  building ‘fable.prophet_0.1.0.tar.gz’
#>      
#> 
#> Error: Failed to install 'fable.prophet' from GitHub:
#>   (converted from warning) installation of package '/var/folders/jm/3kpdk9cn29x_x8ht1tkcy_9c0000gn/T//RtmpJh5IaQ/file613f71bcc999/fable.prophet_0.1.0.tar.gz' had non-zero exit status

library(tsibble)
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
cafe <- tsibbledata::aus_retail %>% 
  filter(Industry == "Cafes, restaurants and catering services")
#> Error: Detecting a corrupt tsibble object, and please reconstruct with `as_tsibble()`.

library(fable.prophet)
#> Error in library(fable.prophet): there is no package called 'fable.prophet'
fit <- cafe %>% 
  model(
    prophet = prophet(Turnover ~ season("year", 4, type = "multiplicative"))
  )
#> Error in eval(lhs, parent, parent): object 'cafe' not found

Created on 2020-04-29 by the reprex package (v0.3.0)

Yes, the installation issue is due to prophet not being on CRAN.
Regarding the tsibbledata issue, you are likely using the dev version of tsibble and the cran version of tsibbledata (or vice-versa). I recommend using the CRAN versions of both these packages unless you need dev versions for some specific reason.

Thanks a lot!