davidtedfordholt / fable.bsts

Implementation of the bsts package for use with the fable framework
8 stars 3 forks source link

Installation error #21

Open fyin-stats opened 1 year ago

fyin-stats commented 1 year ago

Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/.

Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.


I encountered the following error while installing fable.bsts on my AWS SageMaker notebook instances. Can you please help me with this? Thanks!

Below is the R code for installation

ipak <- function(pkg){
  new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
  if (length(new.pkg))
    install.packages(new.pkg, dependencies = TRUE)
  try(sapply(pkg, require, character.only = TRUE), silent = TRUE)
}
packages <- c("fable", "tsibble", 
              "tsibbledata", 
              "lubridate", "dplyr", 
              "ggplot2", "stringi","fable.prophet", "remotes")
ipak(packages)

remotes::install_github("davidtedfordholt/fable.bsts")

Please see below for the error message

_Downloading GitHub repo davidtedfordholt/fable.bsts@HEAD

Boom (NA -> 0.9.11) [CRAN] timechange (NA -> 0.1.1 ) [CRAN] lubridate (1.8.0 -> 1.9.0 ) [CRAN] BoomSpike... (NA -> 1.2.5 ) [CRAN] bsts (NA -> 0.9.9 ) [CRAN] Installing 5 packages: Boom, timechange, lubridate, BoomSpikeSlab, bsts

Updating HTML index of packages in '.Library'

Making 'packages.html' ... done

Running R CMD build...

The environment info is here

R version 4.2.2 (2022-10-31) Platform: x86_64-conda-linux-gnu (64-bit) Running under: Amazon Linux 2

Matrix products: default BLAS/LAPACK: /home/ec2-user/anaconda3/envs/R/lib/libopenblasp-r0.3.21.so

locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] 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] remotes_2.4.2 fable.prophet_0.1.0 Rcpp_1.0.9
[4] bsts_0.9.9 xts_0.12.2 zoo_1.8-11
[7] BoomSpikeSlab_1.2.5 Boom_0.9.11 stringi_1.7.8
[10] ggplot2_3.4.0 dplyr_1.0.10 lubridate_1.9.0
[13] tsibbledata_0.4.1 tsibble_1.1.3 fable_0.3.2
[16] fabletools_0.3.2

loaded via a namespace (and not attached): [1] pbdZMQ_0.3-8 tidyselect_1.2.0 repr_1.1.4
[4] purrr_0.3.5 lattice_0.20-45 colorspace_2.0-3
[7] vctrs_0.5.1 generics_0.1.3 htmltools_0.5.3
[10] base64enc_0.1-3 utf8_1.2.2 rlang_1.0.6
[13] pillar_1.8.1 glue_1.6.2 withr_2.5.0
[16] DBI_1.1.3 rappdirs_0.3.3 distributional_0.3.1 [19] uuid_1.1-0 lifecycle_1.0.3 munsell_0.5.0
[22] anytime_0.3.9 gtable_0.3.1 evaluate_0.18
[25] fastmap_1.1.0 curl_4.3.3 fansi_1.0.3
[28] IRdisplay_1.1 scales_1.2.1 IRkernel_1.3
[31] jsonlite_1.8.3 farver_2.1.1 digest_0.6.30
[34] grid_4.2.2 cli_3.4.1 tools_4.2.2
[37] magrittr_2.0.3 tibble_3.1.8 crayon_1.5.2
[40] tidyr_1.2.1 pkgconfig_2.0.3 ellipsis_0.3.2
[43] MASS_7.3-58.1 assertthat_0.2.1 R6_2.5.1
[46] compiler_4.2.2

fyin-stats commented 1 year ago

Okay, it looks like the fable.bsts package was able to be installed after I installed the furrr package.