Error: 'n_factors' is not an exported object from 'namespace:psycho'
ozika opened this issue · 2 comments
ozika commented
Hi, I feel like this is something trivial, but psycho::n_factors()
doesn't seem to exist. I followed the install instructions on the website.
Any ideas?
library(psycho)
psycho::n_factors()
---
Error: 'n_factors' is not an exported object from 'namespace:psycho'
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.5 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_GB.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_GB.UTF-8 LC_NAME=C 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] psycho_0.6.1
loaded via a namespace (and not attached):
[1] rstudioapi_0.13 knitr_1.39 magrittr_2.0.1 tidyselect_1.1.2 munsell_0.5.0 colorspace_2.0-3 R6_2.5.0 rlang_1.0.4 fastmap_1.1.0
[10] fansi_0.4.1 dplyr_1.0.10 tools_3.6.3 grid_3.6.3 gtable_0.3.0 xfun_0.31 utf8_1.2.2 cli_3.4.0 DBI_1.1.3
[19] htmltools_0.5.3 ellipsis_0.3.2 yaml_2.3.5 digest_0.6.19 assertthat_0.2.1 tibble_3.0.4 lifecycle_1.0.1 purrr_0.3.4 ggplot2_3.3.6
[28] vctrs_0.4.1 evaluate_0.15 glue_1.4.2 rmarkdown_2.16 compiler_3.6.3 pillar_1.8.1 generics_0.1.3 scales_1.2.0 pkgconfig_2.0.3
DominiqueMakowski commented
Hi @ozika, the function now lives in the parameters
package: https://easystats.github.io/parameters/reference/n_factors.html
Once you installed it, you can use parameters::n_factors()
ozika commented
Got it! Thank you @DominiqueMakowski !