business-science / timetk

Time series analysis in the `tidyverse`
https://business-science.github.io/timetk/
612 stars 100 forks source link

Error: .onLoad failed in loadNamespace() for 'slider', details: call: fun(libname, pkgname) error: function 'exp_vec_restore' not provided by package 'vctrs' #41

Closed edgBR closed 4 years ago

edgBR commented 4 years ago

Hi Colleagues,

Trying to migrate my code to time_tk 2.0 replacing the tk_augment_roll_apply by slidify. However I am getting the following error:

> test <- test %>% tk_augment_slidify(.value = snsr_val_clean_lag1_diff1, .period = c(4,12,18), .partial = "right", .f = AVERAGE)
Error: .onLoad failed in loadNamespace() for 'slider', details:
  call: fun(libname, pkgname)
  error: function 'exp_vec_restore' not provided by package 'vctrs'

Session info attached:

sessionInfo()

sessionInfo() R version 4.0.0 (2020-04-24) 
Platform: x86_64-pc-linux-gnu (64-bit) 
Running under: Ubuntu 16.04.6 LTS  
Matrix products: 
default BLAS:   /usr/lib/atlas-base/atlas/libblas.so.3.0 
LAPACK: /usr/lib/atlas-base/atlas/liblapack.so.3.0  
locale:  
[1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8     [6] LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C         

attached base packages: 

[1] stats     graphics  grDevices utils     datasets  methods   base       

other attached packages: 

[1] vctrs_0.3.1                tidyquant_1.0.0            quantmod_0.4.17            TTR_0.23-6                 PerformanceAnalytics_2.0.4  [6] paws_0.1.8                 feather_0.3.5              xts_0.12-0                 zoo_1.8-8                  DescTools_0.99.35          [11] data.table_1.12.8          optparse_1.6.6             furrr_0.1.0                future_1.17.0              imputeTS_3.0               [16] timetk_2.0.0               feasts_0.1.3               fable_0.2.1                fabletools_0.2.0.9000      tsibble_0.9.1              [21] forcats_0.5.0              stringr_1.4.0              dplyr_1.0.0                purrr_0.3.4                readr_1.3.1                [26] tidyr_1.1.0                tibble_3.0.1               ggplot2_3.3.2              tidyverse_1.3.0            aws.s3_0.3.21              [31] drake_7.12.2               tictoc_1.0                 ConfigParser_1.0.0         R6_2.4.1                   ini_0.3.1                  [36] DBI_1.1.0                  odbc_1.2.2                 lubridate_1.7.8             

loaded via a namespace (and not attached):   

[1] readxl_1.3.1                backports_1.1.6             igraph_1.2.5                paws.common_0.3.1           splines_4.0.0                 [6] storr_1.2.1                 listenv_0.8.0               digest_0.6.25               rsconnect_0.8.16            fansi_0.4.1                  [11] magrittr_1.5                base64url_1.4               aws.signature_0.5.2         recipes_0.1.12              globals_0.12.5               [16] modelr_0.1.7                gower_0.2.1                 askpass_1.1                 anytime_0.3.7               forecast_8.12                [21] tseries_0.10-47             prettyunits_1.1.1           colorspace_1.4-1            blob_1.2.1                  rvest_0.3.5                  [26] warp_0.1.0                  haven_2.2.0                 crayon_1.3.4                jsonlite_1.6.1              progressr_0.6.0              [31] survival_3.1-12             glue_1.4.1                  gtable_0.3.0                ipred_0.9-9                 distributional_0.1.0         [36] Quandl_2.10.0               scales_1.1.0                stinepack_1.4               mvtnorm_1.1-0               Rcpp_1.0.4.6                 [41] progress_1.2.2              bit_1.1-15.2                txtq_0.2.0                  lava_1.6.7                  prodlim_2019.11.13           [46] httr_1.4.1                  getopt_1.20.3               ellipsis_0.3.0              pkgconfig_2.0.3             farver_2.0.3                 [51] nnet_7.3-14                 dbplyr_1.4.3                utf8_1.1.4                  tidyselect_1.1.0            labeling_0.3                 [56] rlang_0.4.6                 munsell_0.5.0               cellranger_1.1.0            tools_4.0.0                 cli_2.0.2                    [61] generics_0.0.2              broom_0.5.6                 bit64_0.9-7                 fs_1.4.1                    packrat_0.5.0                [66] nlme_3.1-147                xml2_1.3.2                  compiler_4.0.0              rstudioapi_0.11             filelock_1.0.2               [71] curl_4.3                    testthat_2.3.2              reprex_0.3.0                stringi_1.4.6               desc_1.2.0                   [76] lattice_0.20-41             Matrix_1.2-18               urca_1.3-0                  pillar_1.4.4                aws.ec2metadata_0.2.0        [81] lifecycle_0.2.0             lmtest_0.9-37               sessioninfo_1.1.1           codetools_0.2-16            boot_1.3-25                  [86] paws.machine.learning_0.1.8 MASS_7.3-51.6               assertthat_0.2.1            pkgload_1.0.2               openssl_1.4.1                [91] rprojroot_1.3-2             withr_2.2.0                 fracdiff_1.5-1              mgcv_1.8-31                 expm_0.999-4                 [96] parallel_4.0.0              hms_0.5.3                   quadprog_1.5-8              grid_4.0.0                  rpart_4.1-15                [101] timeDate_3043.102           class_7.3-17                base64enc_0.1-3

Any clue of what is going on?

BR /Edgar

DavisVaughan commented 4 years ago

It looks like you have the latest version of vctrs (0.3.1). Can you please install the latest version of slider? install.packages(“slider”) plus a restart of R should fix it

edgBR commented 4 years ago

Solved.

Thanks for the support

BR /E