Issue for removed isFALSE function in xfun
Within the latest version of xfun the function isFALSE was removed (see link). It seems this function is still used within this package. Initially I noticed when updating, and an error was thrown using a simple example:
sortable::rank_list(
text = "You can drag, drop and re-order these items:",
labels = c("one", "two", "three", "four", "five"),
input_id = "example_2"
)
I'm unable to replicate.
Can you please provide your session info? Also, does it make a difference if you use the dev version of sortable.
FWIW, the sortable package doesn't call isFALSE so it's unclear why this message occurs.
Hi @andrie find attached my session info:
R version 4.2.2 Patched (2022-11-10 r83330)
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/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C 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 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] zip_2.2.0 Rcpp_1.0.8.3 bslib_0.8.0 compiler_4.2.2 ellmer_0.1.0.9000 later_1.1.0.1 jquerylib_0.1.4
[8] httr2_1.0.7 tools_4.2.2 digest_0.6.27 jsonlite_1.7.2 memoise_2.0.1 evaluate_0.14 lifecycle_1.0.3
[15] rlang_1.1.1 openxlsx_4.2.4 shiny_1.10.0 cli_3.6.1 rstudioapi_0.13 yaml_2.2.1 xfun_0.50
[22] coro_1.1.0 fastmap_1.2.0 sass_0.4.9 htmlwidgets_1.6.4 rappdirs_0.3.3 glue_1.6.2 R6_2.5.0
[29] magrittr_2.0.3 promises_1.3.2 htmltools_0.5.8.1 assertthat_0.2.1 mime_0.9 xtable_1.8-4 httpuv_1.5.4
[36] S7_0.2.0 stringi_1.5.3 cachem_1.1.0
Not sure what is going on; I could also not reproduce on a newer system (I know the system where the issue occurs is a bit outdated). On the indicated system I receive the following error directly after calling library(sortable):
Error: package or namespace load failed for ‘sortable’: object ‘isFALSE’ is not exported by 'namespace:xfun'
When downgrading the xfun package, everything seems to work again:
install.packages("https://cran.r-project.org/src/contrib/Archive/xfun/xfun_0.48.tar.gz", repos=NULL, type="source")