Hi,
I've updated R recently, and I was trying to execute the code from "Forecasting: Principles and Practice" on section 5.4:
# Re-index based on trading days
google_stock <- tsibbledata::gafa_stock %>%
filter(Symbol == "GOOG") %>%
mutate(day = row_number()) %>%
update_tsibble(index = day, regular = TRUE)
# Filter the year of interest
google_2015 <- google_stock %>% filter(year(Date) == 2015)
google_2015 %>% model(NAIVE(Close)) %>% gg_tsresiduals()
But I am getting an error:
<error/vctrs_error_incompatible_op>
<interval> + <integer> is not permitted
Backtrace:
1. fabletools::model(., NAIVE(Close))
9. feasts::gg_tsresiduals(.)
10. feasts::gg_tsdisplay(...)
12. feasts:::autoplot.tbl_cf(ACF(data, !!y, lag_max = lag_max))
18. inum:::format.interval(interval)
19. vctrs:::`+.vctrs_vctr`(x, 1L)
21. vctrs:::vec_arith.default("+", e1, e2)
22. vctrs::stop_incompatible_op(op, x, y)
23. vctrs:::stop_incompatible(...)
24. vctrs:::stop_vctrs(...)
Any idea how can I make it work?
1 Like
There is currently an incompatibility between fable and fabletools on CRAN, and the dplyr and tsibble packages. We are working to have them updated asap. You could update to the dev versions using
devtools::install_github(c("tidyverts/fabletools","tidyverts/fable"))
It didn't worked.
I am now using fable version 0.2.1, fabletools version 0.2.0, feasts version 0.1.3.
Could be something on feasts package?
Even a simple example is not working:
tsibbledata::vic_elec %>% ACF(Temperature)
And I get the same error. Using rlang last_trace I have the following:
<error/vctrs_error_incompatible_op>
<interval> + <integer> is not permitted
Backtrace:
β
1. ββ(function (x, ...) ...
2. ββtibble:::print.tbl(x)
3. ββcli::cat_line(format(x, ..., n = n, width = width, n_extra = n_extra))
4. β ββbase::paste0(..., collapse = "\n")
5. ββbase::format(x, ..., n = n, width = width, n_extra = n_extra)
6. ββtsibble:::format.tbl_ts(x, ..., n = n, width = width, n_extra = n_extra)
7. ββbase::format(trunc_mat(x, n = n, width = width, n_extra = n_extra))
8. ββtibble:::format.trunc_mat(...)
9. ββpillar::squeeze(x$mcf, width = width)
10. ββpillar:::colonnade_get_width(x, width, rowid_width)
11. ββpillar:::map(x[pillar_shown], pillar_shaft)
12. ββbase::lapply(.x, .f, ...)
13. ββpillar:::FUN(X[[i]], ...)
14. ββpillar:::pillar_shaft.vctrs_vctr(X[[i]], ...)
15. ββpillar::new_pillar_shaft_simple(format(x), align = align)
16. β ββpillar::get_max_extent(as.character(formatted))
17. β ββpillar::get_extent(x)
18. β ββbase::force(x)
19. ββbase::format(x)
20. ββfeasts:::format.cf_lag(x)
21. ββbase::substring(...)
22. ββbase::format(interval)
23. ββinum:::format.interval(interval)
24. ββvctrs:::`+.vctrs_vctr`(x, 1L)
25. ββvctrs::vec_arith("+", e1, e2)
26. ββvctrs:::vec_arith.default("+", e1, e2)
27. ββvctrs::stop_incompatible_op(op, x, y)
28. ββvctrs:::stop_incompatible(...)
29. ββvctrs:::stop_vctrs(...)
This example does work for me:
library(feasts)
#> Loading required package: fabletools
tsibbledata::vic_elec %>% ACF(Temperature)
#> # A tsibble: 47 x 2 [30m]
#> lag acf
#> <lag> <dbl>
#> 1 30m 0.994
#> 2 60m 0.982
#> 3 90m 0.967
#> 4 120m 0.948
#> 5 150m 0.925
#> 6 180m 0.901
#> 7 210m 0.873
#> 8 240m 0.845
#> 9 270m 0.815
#> 10 300m 0.785
#> # β¦ with 37 more rows
Created on 2020-06-12 by the reprex package (v0.3.0)
Session info
devtools::session_info()
#> β Session info βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#> setting value
#> version R version 4.0.1 (2020-06-06)
#> os Ubuntu 20.04 LTS
#> system x86_64, linux-gnu
#> ui X11
#> language en_AU:en
#> collate en_AU.UTF-8
#> ctype en_AU.UTF-8
#> tz Australia/Melbourne
#> date 2020-06-12
#>
#> β Packages βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#> package * version date lib
#> anytime 0.3.7 2020-01-20 [1]
#> assertthat 0.2.1 2019-03-21 [1]
#> backports 1.1.7 2020-05-13 [1]
#> callr 3.4.3 2020-03-28 [1]
#> cli 2.0.2 2020-02-28 [1]
#> colorspace 1.4-1 2019-03-18 [1]
#> crayon 1.3.4.9000 2020-05-18 [1]
#> desc 1.2.0 2018-05-01 [1]
#> devtools 2.3.0 2020-04-10 [1]
#> digest 0.6.25 2020-02-23 [1]
#> distributional 0.1.0.9000 2020-06-11 [1]
#> dplyr 1.0.0 2020-05-29 [1]
#> ellipsis 0.3.1 2020-05-15 [1]
#> evaluate 0.14 2019-05-28 [1]
#> fabletools * 0.2.0 2020-06-12 [1]
#> fansi 0.4.1 2020-01-08 [1]
#> farver 2.0.3 2020-01-16 [1]
#> feasts * 0.1.3 2020-03-18 [1]
#> fs 1.4.1 2020-04-04 [1]
#> generics 0.0.2 2018-11-29 [1]
#> ggplot2 3.3.1 2020-05-28 [1]
#> glue 1.4.1 2020-05-13 [1]
#> gtable 0.3.0 2019-03-25 [1]
#> highr 0.8 2019-03-20 [1]
#> htmltools 0.4.0.9003 2020-05-24 [1]
#> knitr 1.28.7 2020-06-11 [1]
#> lifecycle 0.2.0 2020-03-06 [1]
#> lubridate 1.7.8 2020-04-06 [1]
#> magrittr 1.5 2014-11-22 [1]
#> memoise 1.1.0 2017-04-21 [1]
#> munsell 0.5.0 2018-06-12 [1]
#> pillar 1.4.4 2020-05-05 [1]
#> pkgbuild 1.0.8 2020-05-07 [1]
#> pkgconfig 2.0.3 2019-09-22 [1]
#> pkgload 1.1.0 2020-05-29 [1]
#> prettyunits 1.1.1 2020-01-24 [1]
#> processx 3.4.2 2020-02-09 [1]
#> ps 1.3.3 2020-05-08 [1]
#> purrr 0.3.4 2020-04-17 [1]
#> R6 2.4.1 2019-11-12 [1]
#> Rcpp 1.0.4.6 2020-04-09 [1]
#> remotes 2.1.1 2020-02-15 [1]
#> rlang 0.4.6 2020-05-02 [1]
#> rmarkdown 2.2.3 2020-06-11 [1]
#> rprojroot 1.3-2 2018-01-03 [1]
#> scales 1.1.1 2020-05-11 [1]
#> sessioninfo 1.1.1 2018-11-05 [1]
#> stringi 1.4.6 2020-02-17 [1]
#> stringr 1.4.0 2019-02-10 [1]
#> testthat 2.3.2 2020-03-02 [1]
#> tibble 3.0.1 2020-04-20 [1]
#> tidyr 1.1.0 2020-05-20 [1]
#> tidyselect 1.1.0 2020-05-11 [1]
#> tsibble 0.9.0 2020-06-04 [1]
#> tsibbledata 0.2.0 2020-06-04 [1]
#> usethis 1.6.1 2020-04-29 [1]
#> utf8 1.1.4 2018-05-24 [1]
#> vctrs 0.3.1.9000 2020-06-09 [1]
#> withr 2.2.0 2020-04-20 [1]
#> xfun 0.14 2020-05-20 [1]
#> yaml 2.2.1 2020-02-01 [1]
#> source
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> RSPM (R 4.0.0)
#> RSPM (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> Github (r-lib/crayon@dcf6d44)
#> CRAN (R 4.0.0)
#> RSPM (R 4.0.0)
#> CRAN (R 4.0.0)
#> Github (mitchelloharawild/distributional@48a17b9)
#> RSPM (R 4.0.0)
#> RSPM (R 4.0.0)
#> CRAN (R 4.0.0)
#> Github (tidyverts/fabletools@4f7738b)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.1)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> RSPM (R 4.0.0)
#> RSPM (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> Github (rstudio/htmltools@984b39c)
#> Github (yihui/knitr@12219b1)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> RSPM (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> RSPM (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> RSPM (R 4.0.0)
#> Github (rstudio/rmarkdown@4ee96c8)
#> CRAN (R 4.0.0)
#> RSPM (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> RSPM (R 4.0.0)
#> RSPM (R 4.0.0)
#> RSPM (R 4.0.0)
#> RSPM (R 4.0.0)
#> CRAN (R 4.0.0)
#> CRAN (R 4.0.0)
#> Github (r-lib/vctrs@24cd670)
#> CRAN (R 4.0.0)
#> RSPM (R 4.0.0)
#> CRAN (R 4.0.0)
#>
#> [1] /home/robjhyndman/R/x86_64-pc-linux-gnu-library/4.0
#> [2] /usr/local/lib/R/site-library
#> [3] /usr/lib/R/library
Please provide your sessioninfo. I suggest using reprex::reprex(si=TRUE)
.
here it goes:
Session info ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
setting value
version R version 4.0.1 (2020-06-06)
os macOS Catalina 10.15.5
system x86_64, darwin17.0
ui RStudio
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz America/Sao_Paulo
date 2020-06-12
β Packages ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
package * version date lib source
abind 1.4-5 2016-07-21 [1] CRAN (R 4.0.0)
acepack 1.4.1 2016-10-29 [1] CRAN (R 4.0.0)
anytime 0.3.7 2020-01-20 [1] CRAN (R 4.0.0)
assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.0.0)
backports 1.1.7 2020-05-13 [1] CRAN (R 4.0.0)
base64enc 0.1-3 2015-07-28 [1] CRAN (R 4.0.0)
bit 1.1-15.2 2020-02-10 [1] CRAN (R 4.0.0)
bit64 0.9-7 2017-05-08 [1] CRAN (R 4.0.0)
blob 1.2.1 2020-01-20 [1] CRAN (R 4.0.0)
broom 0.5.6 2020-04-20 [1] CRAN (R 4.0.0)
callr 3.4.3 2020-03-28 [1] CRAN (R 4.0.0)
car 3.0-8 2020-05-21 [1] CRAN (R 4.0.0)
carData 3.0-4 2020-05-22 [1] CRAN (R 4.0.0)
cellranger 1.1.0 2016-07-27 [1] CRAN (R 4.0.0)
checkmate 2.0.0 2020-02-06 [1] CRAN (R 4.0.0)
chron 2.3-55 2020-02-02 [1] CRAN (R 4.0.0)
class 7.3-17 2020-04-26 [1] CRAN (R 4.0.1)
classInt 0.4-3 2020-04-07 [1] CRAN (R 4.0.0)
cli 2.0.2 2020-02-28 [1] CRAN (R 4.0.0)
cluster 2.1.0 2019-06-19 [1] CRAN (R 4.0.1)
colorspace 1.4-1 2019-03-18 [1] CRAN (R 4.0.0)
corrplot 0.84 2017-10-16 [1] CRAN (R 4.0.0)
crayon 1.3.4 2017-09-16 [1] CRAN (R 4.0.0)
crosstalk 1.1.0.1 2020-03-13 [1] CRAN (R 4.0.0)
curl 4.3 2019-12-02 [1] CRAN (R 4.0.0)
data.table 1.12.8 2019-12-09 [1] CRAN (R 4.0.0)
DBI 1.1.0 2019-12-15 [1] CRAN (R 4.0.0)
desc 1.2.0 2018-05-01 [1] CRAN (R 4.0.0)
devtools 2.3.0 2020-04-10 [1] CRAN (R 4.0.0)
digest 0.6.25 2020-02-23 [1] CRAN (R 4.0.0)
distributional 0.1.0 2020-06-09 [1] CRAN (R 4.0.0)
dlookr * 0.3.13 2020-01-09 [1] CRAN (R 4.0.0)
DMwR 0.4.1 2013-08-08 [1] CRAN (R 4.0.0)
dplyr * 1.0.0 2020-05-29 [1] CRAN (R 4.0.0)
e1071 1.7-3 2019-11-26 [1] CRAN (R 4.0.0)
ellipsis 0.3.1 2020-05-15 [1] CRAN (R 4.0.0)
evaluate 0.14 2019-05-28 [1] CRAN (R 4.0.0)
fable * 0.2.1 2020-06-12 [1] Github (tidyverts/fable@4b9ae29)
fabletools * 0.2.0 2020-06-12 [1] Github (tidyverts/fabletools@4f7738b)
fansi 0.4.1 2020-01-08 [1] CRAN (R 4.0.0)
farver 2.0.3 2020-01-16 [1] CRAN (R 4.0.0)
fastmap 1.0.1 2019-10-08 [1] CRAN (R 4.0.0)
feasts * 0.1.3 2020-03-18 [1] CRAN (R 4.0.0)
flexdashboard * 0.5.1.1 2018-06-29 [1] CRAN (R 4.0.0)
forcats 0.5.0 2020-03-01 [1] CRAN (R 4.0.0)
foreign 0.8-80 2020-05-24 [1] CRAN (R 4.0.1)
Formula 1.2-3 2018-05-03 [1] CRAN (R 4.0.0)
fs 1.4.1 2020-04-04 [1] CRAN (R 4.0.0)
generics 0.0.2 2018-11-29 [1] CRAN (R 4.0.0)
GGally * 2.0.0 2020-06-06 [1] CRAN (R 4.0.0)
ggplot2 * 3.3.1 2020-05-28 [1] CRAN (R 4.0.0)
glue 1.4.1 2020-05-13 [1] CRAN (R 4.0.0)
gridExtra 2.3 2017-09-09 [1] CRAN (R 4.0.0)
gsubfn 0.7 2018-03-16 [1] CRAN (R 4.0.0)
gtable 0.3.0 2019-03-25 [1] CRAN (R 4.0.0)
haven 2.3.1 2020-06-01 [1] CRAN (R 4.0.0)
Hmisc 4.4-0 2020-03-23 [1] CRAN (R 4.0.0)
hms 0.5.3 2020-01-08 [1] CRAN (R 4.0.0)
htmlTable 1.13.3 2019-12-04 [1] CRAN (R 4.0.0)
htmltools 0.4.0 2019-10-04 [1] CRAN (R 4.0.0)
htmlwidgets 1.5.1 2019-10-08 [1] CRAN (R 4.0.0)
httpuv 1.5.4 2020-06-06 [1] CRAN (R 4.0.0)
httr 1.4.1 2019-08-05 [1] CRAN (R 4.0.0)
inum 1.0-1 2019-04-25 [1] CRAN (R 4.0.0)
jpeg 0.1-8.1 2019-10-24 [1] CRAN (R 4.0.0)
jsonlite 1.6.1 2020-02-02 [1] CRAN (R 4.0.0)
kableExtra 1.1.0 2019-03-16 [1] CRAN (R 4.0.0)
KernSmooth 2.23-17 2020-04-26 [1] CRAN (R 4.0.1)
knitr 1.28 2020-02-06 [1] CRAN (R 4.0.0)
labeling 0.3 2014-08-23 [1] CRAN (R 4.0.0)
later 1.1.0.1 2020-06-05 [1] CRAN (R 4.0.0)
lattice 0.20-41 2020-04-02 [1] CRAN (R 4.0.1)
latticeExtra 0.6-29 2019-12-19 [1] CRAN (R 4.0.0)
lazyeval 0.2.2 2019-03-15 [1] CRAN (R 4.0.0)
libcoin 1.0-5 2019-08-27 [1] CRAN (R 4.0.0)
lifecycle 0.2.0 2020-03-06 [1] CRAN (R 4.0.0)
lubridate * 1.7.9 2020-06-08 [1] CRAN (R 4.0.1)
magrittr * 1.5 2014-11-22 [1] CRAN (R 4.0.0)
MASS 7.3-51.6 2020-04-26 [1] CRAN (R 4.0.1)
Matrix 1.2-18 2019-11-27 [1] CRAN (R 4.0.1)
memoise 1.1.0 2017-04-21 [1] CRAN (R 4.0.0)
mFilter * 0.1-5 2019-06-04 [1] CRAN (R 4.0.0)
mice * 3.9.0 2020-05-14 [1] CRAN (R 4.0.0)
mime 0.9 2020-02-04 [1] CRAN (R 4.0.0)
moments 0.14 2015-01-05 [1] CRAN (R 4.0.0)
munsell 0.5.0 2018-06-12 [1] CRAN (R 4.0.0)
mvtnorm 1.1-1 2020-06-09 [1] CRAN (R 4.0.1)
nlme 3.1-148 2020-05-24 [1] CRAN (R 4.0.1)
nnet 7.3-14 2020-04-26 [1] CRAN (R 4.0.1)
nortest 1.0-4 2015-07-30 [1] CRAN (R 4.0.0)
openxlsx * 4.1.5 2020-05-06 [1] CRAN (R 4.0.0)
partykit 1.2-8 2020-06-10 [1] CRAN (R 4.0.1)
pillar 1.4.4 2020-05-05 [1] CRAN (R 4.0.0)
pkgbuild 1.0.8 2020-05-07 [1] CRAN (R 4.0.0)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.0.0)
pkgload 1.1.0 2020-05-29 [1] CRAN (R 4.0.0)
plotly * 4.9.2.1 2020-04-04 [1] CRAN (R 4.0.0)
plyr 1.8.6 2020-03-03 [1] CRAN (R 4.0.0)
png 0.1-7 2013-12-03 [1] CRAN (R 4.0.0)
prettydoc 0.3.1 2019-11-23 [1] CRAN (R 4.0.0)
prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.0.0)
processx 3.4.2 2020-02-09 [1] CRAN (R 4.0.0)
progress 1.2.2 2019-05-16 [1] CRAN (R 4.0.0)
progressr 0.6.0 2020-05-19 [1] CRAN (R 4.0.0)
promises 1.1.1 2020-06-09 [1] CRAN (R 4.0.1)
proto 1.0.0 2016-10-29 [1] CRAN (R 4.0.0)
ps 1.3.3 2020-05-08 [1] CRAN (R 4.0.0)
purrr * 0.3.4 2020-04-17 [1] CRAN (R 4.0.0)
quantmod 0.4.17 2020-03-31 [1] CRAN (R 4.0.0)
R6 2.4.1 2019-11-12 [1] CRAN (R 4.0.0)
RcmdrMisc 2.7-0 2020-01-14 [1] CRAN (R 4.0.0)
RColorBrewer * 1.1-2 2014-12-07 [1] CRAN (R 4.0.0)
Rcpp 1.0.4.6 2020-04-09 [1] CRAN (R 4.0.0)
readr 1.3.1 2018-12-21 [1] CRAN (R 4.0.0)
readxl * 1.3.1 2019-03-13 [1] CRAN (R 4.0.0)
remotes 2.1.1 2020-02-15 [1] CRAN (R 4.0.0)
reshape 0.8.8 2018-10-23 [1] CRAN (R 4.0.0)
rio 0.5.16 2018-11-26 [1] CRAN (R 4.0.0)
rlang 0.4.6 2020-05-02 [1] CRAN (R 4.0.0)
rmarkdown 2.2 2020-05-31 [1] CRAN (R 4.0.0)
ROCR 1.0-11 2020-05-02 [1] CRAN (R 4.0.0)
rpart 4.1-15 2019-04-12 [1] CRAN (R 4.0.1)
rprojroot 1.3-2 2018-01-03 [1] CRAN (R 4.0.0)
RSQLite 2.2.0 2020-01-07 [1] CRAN (R 4.0.0)
rstudioapi 0.11 2020-02-07 [1] CRAN (R 4.0.0)
rvest 0.3.5 2019-11-08 [1] CRAN (R 4.0.0)
sandwich 2.5-1 2019-04-06 [1] CRAN (R 4.0.0)
scales 1.1.1 2020-05-11 [1] CRAN (R 4.0.0)
seasonal * 1.7.1 2020-06-06 [1] CRAN (R 4.0.0)
sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 4.0.0)
shiny * 1.4.0.2 2020-03-13 [1] CRAN (R 4.0.0)
shinydashboard * 0.7.1 2018-10-17 [1] CRAN (R 4.0.0)
smbinning 0.9 2019-04-01 [1] CRAN (R 4.0.0)
sqldf 0.4-11 2017-06-28 [1] CRAN (R 4.0.0)
stringi 1.4.6 2020-02-17 [1] CRAN (R 4.0.0)
stringr * 1.4.0 2019-02-10 [1] CRAN (R 4.0.0)
survival 3.1-12 2020-04-10 [1] CRAN (R 4.0.1)
testthat 2.3.2 2020-03-02 [1] CRAN (R 4.0.0)
tibble 3.0.1 2020-04-20 [1] CRAN (R 4.0.0)
tibbletime * 0.1.4 2020-05-26 [1] CRAN (R 4.0.0)
tidyr * 1.1.0 2020-05-20 [1] CRAN (R 4.0.0)
tidyselect 1.1.0 2020-05-11 [1] CRAN (R 4.0.0)
tinytex 0.23 2020-05-19 [1] CRAN (R 4.0.0)
tsibble * 0.9.0 2020-06-04 [1] CRAN (R 4.0.1)
tsibbledata 0.2.0 2020-06-04 [1] CRAN (R 4.0.1)
TTR 0.23-6 2019-12-15 [1] CRAN (R 4.0.0)
urca * 1.3-0 2016-09-06 [1] CRAN (R 4.0.0)
usethis 1.6.1 2020-04-29 [1] CRAN (R 4.0.0)
utf8 1.1.4 2018-05-24 [1] CRAN (R 4.0.0)
vctrs 0.3.1 2020-06-05 [1] CRAN (R 4.0.0)
viridisLite 0.3.0 2018-02-01 [1] CRAN (R 4.0.0)
webshot 0.5.2 2019-11-22 [1] CRAN (R 4.0.0)
withr 2.2.0 2020-04-20 [1] CRAN (R 4.0.0)
x13binary 1.1.39-2 2019-05-07 [1] CRAN (R 4.0.0)
xfun 0.14 2020-05-20 [1] CRAN (R 4.0.0)
xml2 1.3.2 2020-04-23 [1] CRAN (R 4.0.0)
xtable 1.8-4 2019-04-21 [1] CRAN (R 4.0.0)
xts 0.12-0 2020-01-19 [1] CRAN (R 4.0.0)
yaml 2.2.1 2020-02-01 [1] CRAN (R 4.0.0)
zip 2.0.4 2019-09-01 [1] CRAN (R 4.0.0)
zoo * 1.8-8 2020-05-02 [1] CRAN (R 4.0.0)
[1] /Library/Frameworks/R.framework/Versions/4.0/Resources/library
There seems to be some extraneous packages in your session information.
Could you run this code using reprex::reprex(si = TRUE)
?
library(feasts)
tsibbledata::vic_elec %>% ACF(Temperature)
1 Like
It seems it worked under reprex. I have no idea why, though...
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
library(feasts)
#> Loading required package: fabletools
tsibbledata::vic_elec %>% ACF(Temperature)
#> # A tsibble: 47 x 2 [30m]
#> lag acf
#> <lag> <dbl>
#> 1 30m 0.994
#> 2 60m 0.982
#> 3 90m 0.967
#> 4 120m 0.948
#> 5 150m 0.925
#> 6 180m 0.901
#> 7 210m 0.873
#> 8 240m 0.845
#> 9 270m 0.815
#> 10 300m 0.785
#> # β¦ with 37 more rows
devtools::session_info()
#> β Session info βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#> setting value
#> version R version 4.0.1 (2020-06-06)
#> os macOS Catalina 10.15.5
#> system x86_64, darwin17.0
#> ui X11
#> language (EN)
#> collate en_US.UTF-8
#> ctype en_US.UTF-8
#> tz America/Sao_Paulo
#> date 2020-06-13
#>
#> β Packages βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
#> package * version date lib source
#> anytime 0.3.7 2020-01-20 [1] CRAN (R 4.0.0)
#> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.0.0)
#> backports 1.1.7 2020-05-13 [1] CRAN (R 4.0.0)
#> callr 3.4.3 2020-03-28 [1] CRAN (R 4.0.0)
#> cli 2.0.2 2020-02-28 [1] CRAN (R 4.0.0)
#> colorspace 1.4-1 2019-03-18 [1] CRAN (R 4.0.0)
#> crayon 1.3.4 2017-09-16 [1] CRAN (R 4.0.0)
#> desc 1.2.0 2018-05-01 [1] CRAN (R 4.0.0)
#> devtools 2.3.0 2020-04-10 [1] CRAN (R 4.0.0)
#> digest 0.6.25 2020-02-23 [1] CRAN (R 4.0.0)
#> distributional 0.1.0 2020-06-09 [1] CRAN (R 4.0.0)
#> dplyr * 1.0.0 2020-05-29 [1] CRAN (R 4.0.0)
#> ellipsis 0.3.1 2020-05-15 [1] CRAN (R 4.0.0)
#> evaluate 0.14 2019-05-28 [1] CRAN (R 4.0.0)
#> fabletools * 0.2.0 2020-06-12 [1] Github (tidyverts/fabletools@4f7738b)
#> fansi 0.4.1 2020-01-08 [1] CRAN (R 4.0.0)
#> farver 2.0.3 2020-01-16 [1] CRAN (R 4.0.0)
#> feasts * 0.1.3 2020-03-18 [1] CRAN (R 4.0.0)
#> fs 1.4.1 2020-04-04 [1] CRAN (R 4.0.0)
#> generics 0.0.2 2018-11-29 [1] CRAN (R 4.0.0)
#> ggplot2 3.3.1 2020-05-28 [1] CRAN (R 4.0.0)
#> glue 1.4.1 2020-05-13 [1] CRAN (R 4.0.0)
#> gtable 0.3.0 2019-03-25 [1] CRAN (R 4.0.0)
#> highr 0.8 2019-03-20 [1] CRAN (R 4.0.0)
#> htmltools 0.4.0 2019-10-04 [1] CRAN (R 4.0.0)
#> knitr 1.28 2020-02-06 [1] CRAN (R 4.0.0)
#> lifecycle 0.2.0 2020-03-06 [1] CRAN (R 4.0.0)
#> lubridate 1.7.9 2020-06-08 [1] CRAN (R 4.0.1)
#> magrittr 1.5 2014-11-22 [1] CRAN (R 4.0.0)
#> memoise 1.1.0 2017-04-21 [1] CRAN (R 4.0.0)
#> munsell 0.5.0 2018-06-12 [1] CRAN (R 4.0.0)
#> pillar 1.4.4 2020-05-05 [1] CRAN (R 4.0.0)
#> pkgbuild 1.0.8 2020-05-07 [1] CRAN (R 4.0.0)
#> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.0.0)
#> pkgload 1.1.0 2020-05-29 [1] CRAN (R 4.0.0)
#> prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.0.0)
#> processx 3.4.2 2020-02-09 [1] CRAN (R 4.0.0)
#> ps 1.3.3 2020-05-08 [1] CRAN (R 4.0.0)
#> purrr 0.3.4 2020-04-17 [1] CRAN (R 4.0.0)
#> R6 2.4.1 2019-11-12 [1] CRAN (R 4.0.0)
#> Rcpp 1.0.4.6 2020-04-09 [1] CRAN (R 4.0.0)
#> remotes 2.1.1 2020-02-15 [1] CRAN (R 4.0.0)
#> rlang 0.4.6 2020-05-02 [1] CRAN (R 4.0.0)
#> rmarkdown 2.2 2020-05-31 [1] CRAN (R 4.0.0)
#> rprojroot 1.3-2 2018-01-03 [1] CRAN (R 4.0.0)
#> scales 1.1.1 2020-05-11 [1] CRAN (R 4.0.0)
#> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 4.0.0)
#> stringi 1.4.6 2020-02-17 [1] CRAN (R 4.0.0)
#> stringr 1.4.0 2019-02-10 [1] CRAN (R 4.0.0)
#> testthat 2.3.2 2020-03-02 [1] CRAN (R 4.0.0)
#> tibble 3.0.1 2020-04-20 [1] CRAN (R 4.0.0)
#> tidyr 1.1.0 2020-05-20 [1] CRAN (R 4.0.0)
#> tidyselect 1.1.0 2020-05-11 [1] CRAN (R 4.0.0)
#> tsibble 0.9.0 2020-06-04 [1] CRAN (R 4.0.1)
#> tsibbledata 0.2.0 2020-06-04 [1] CRAN (R 4.0.1)
#> usethis 1.6.1 2020-04-29 [1] CRAN (R 4.0.0)
#> utf8 1.1.4 2018-05-24 [1] CRAN (R 4.0.0)
#> vctrs 0.3.1 2020-06-05 [1] CRAN (R 4.0.0)
#> withr 2.2.0 2020-04-20 [1] CRAN (R 4.0.0)
#> xfun 0.14 2020-05-20 [1] CRAN (R 4.0.0)
#> yaml 2.2.1 2020-02-01 [1] CRAN (R 4.0.0)
#>
#> [1] /Library/Frameworks/R.framework/Versions/4.0/Resources/library
How can I fix it? It just doesn't work "outside of reprex".
Probably because you are loading other packages. reprex creates a clean environment and only loads the packages specified -- in this case, dplyr, feasts (and fabletools is loaded by feasts). When you run it outside of reprex, you must be loading some other packages that are causing problems.
1 Like
Ok, I founded it. I test each of the packages I load, one by one, to try to find which of the package cause this problem.
it's dlookr: https://cran.r-project.org/web/packages/dlookr/index.html
I use it to do data diagnosis. I will stop loading it. Do you have any suggestion of package that could do an easy data diagnosis?
Thank you so much for your kind help!
Thanks for finding the offending package. I've created an issue for identifying the conflict between feasts and dlookr: https://github.com/tidyverts/feasts/issues/106
1 Like
system
Closed
June 21, 2020, 12:58pm
12
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.