Error in svydb
Opened this issue · 1 comments
jieunparkmath commented
Hello.
I have got the following error.
Could you please check this out? I have attached the sessionInfo()
, too.
Thanks!
> library(svydb)
> data(nhane)
> nh.dbsurv = svydbdesign(st = SDMVSTRA, wt = WTMEC2YR, id = SDMVPSU, data = nha> svydbtotal(x = DirectChol, design = nh.dbsurv, num = T)
Error in mtfrm.default(list(message = "Quosures can only be unquoted within a quasiquotation context.\n\n # Bad:\n list(!!myquosure)\n\n # Good:\n dplyr::mutate(data, !!myquosure)", :
cannot mtfrm
> sessionInfo()
R version 4.4.0 (2024-04-24)
Platform: x86_64-pc-linux-gnu
Running under: CentOS Linux 7 (Core)
Matrix products: default
BLAS: /mmfs1/tools/r-4.4.0/lib64/R/lib/libRblas.so
LAPACK: /mmfs1/tools/r-4.4.0/lib64/R/lib/libRlapack.so; LAPACK version 3.12.0
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
time zone: America/Chicago
tzcode source: system (glibc)
attached base packages:
[1] grid stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] lubridate_1.9.3 forcats_1.0.0 stringr_1.5.1 purrr_1.0.2
[5] readr_2.1.5 tidyr_1.3.1 tibble_3.2.1 tidyverse_2.0.0
[9] svydb_0.1.1 ggplot2_3.5.1 survey_4.4-2 survival_3.7-0
[13] Matrix_1.7-0 rlang_1.1.4 dplyr_1.1.4 R6_2.5.1
loaded via a namespace (and not attached):
[1] gtable_0.3.5 htmlwidgets_1.6.4 devtools_2.4.5 remotes_2.5.0
[5] processx_3.8.4 lattice_0.22-6 callr_3.7.6 tzdb_0.4.0
[9] vctrs_0.6.5 tools_4.4.0 ps_1.7.7 generics_0.1.3
[13] curl_5.2.1 fansi_1.0.6 pkgconfig_2.0.3 desc_1.4.3
[17] lifecycle_1.0.4 compiler_4.4.0 munsell_0.5.1 mitools_2.4
[21] httpuv_1.6.15 htmltools_0.5.8.1 usethis_3.0.0 later_1.3.2
[25] pillar_1.9.0 urlchecker_1.0.1 ellipsis_0.3.2 cachem_1.1.0
[29] sessioninfo_1.2.2 mime_0.12 tidyselect_1.2.1 digest_0.6.36
[33] stringi_1.8.4 splines_4.4.0 fastmap_1.2.0 colorspace_2.1-1
[37] cli_3.6.3 magrittr_2.0.3 pkgbuild_1.4.4 utf8_1.2.4
[41] withr_3.0.1 scales_1.3.0 promises_1.3.0 timechange_0.3.0
[45] hms_1.1.3 memoise_2.0.1 shiny_1.9.1 miniUI_0.1.1.1
[49] profvis_0.3.8 Rcpp_1.0.13 xtable_1.8-4 glue_1.7.0
[53] DBI_1.2.3 pkgload_1.4.0 fs_1.6.4
chrk623 commented
There are quiet a lot of places with deprecated rlang
functions, probably dplyr
aswell. Can't spare time to fix all of them right now, but i pushed a hotfix to patch some errors. Should work for now but there may be some deprecation warnings.
devtools::install_github("chrk623/svydb@dev")
Let me know if it works.