-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I tried the following code (from the manual) on my system:
set.seed(42)
s <- sim_dfa(num_trends = 1, num_years = 20, num_ts = 3)
obs <- c(s$y_sim[1, ], s$y_sim[2, ], s$y_sim[3, ])
long <- data.frame("obs" = obs, "ts" = sort(rep(1:3, 20)), "time" = rep(1:20, 3))
m <- fit_dfa(y = long, iter = 50, chains = 1, data_shape = "long", sample= FALSE)
and received the following error
Error in dirname(file) : a character vector argument expected
error in specifying arguments; sampling not done
The error occurs at the line
mod <- do.call(sampling, sampling_args)
I suspect this may be an issue with cross-platform compatibility/differing locations for compiled Stan models. My system details are as follows:
R version 4.2.2 (2022-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.2 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8
[5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8
[7] LC_PAPER=en_GB.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] bayesdfa_1.2.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.10 pillar_1.9.0 compiler_4.2.2
[4] prettyunits_1.1.1 pkgbuild_1.4.0 viridisLite_0.4.1
[7] lifecycle_1.0.3 tibble_3.2.1 gtable_0.3.3
[10] nlme_3.1-161 lattice_0.20-45 mgcv_1.8-41
[13] pkgconfig_2.0.3 rlang_1.1.0 Matrix_1.5-3
[16] cli_3.6.1 parallel_4.2.2 loo_2.5.1
[19] gridExtra_2.3 dplyr_1.1.0 generics_0.1.3
[22] vctrs_0.6.1 stats4_4.2.2 grid_4.2.2
[25] tidyselect_1.2.0 glue_1.6.2 inline_0.3.19
[28] R6_2.5.1 processx_3.8.0 fansi_1.0.4
[31] rstan_2.21.8 ggplot2_3.4.1 callr_3.7.3
[34] magrittr_2.0.3 codetools_0.2-18 StanHeaders_2.21.0-7
[37] scales_1.2.1 ps_1.7.3 matrixStats_0.63.0
[40] splines_4.2.2 colorspace_2.1-0 utf8_1.2.3
[43] RcppParallel_5.1.7 munsell_0.5.0 crayon_1.5.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels