Skip to content

set.cats Deprecated warning #26

@sg-woodman

Description

@sg-woodman

When running the hydroweight function the following warning is printed to the console

1: [set.cats] setting categories like this is deprecated; use a two-column data.frame instead 
2: [set.cats] setting categories like this is deprecated; use a two-column data.frame instead 
3: [set.cats] setting categories like this is deprecated; use a two-column data.frame instead

The output is as expected but unsure if deprivation will impact performance in the future

Session Info:

R version 4.5.2 (2025-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Tahoe 26.3

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.1

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/Edmonton
tzcode source: internal

attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base

other attached packages:
[1] RCurl_1.98-1.17 fs_1.6.6 patchwork_1.3.2 scales_1.4.0
[5] future.apply_1.20.2 future_1.68.0 doParallel_1.0.17 iterators_1.0.14
[9] foreach_1.5.2 tmap_4.2 viridis_0.6.5 viridisLite_0.4.2
[13] whitebox_2.4.3 sf_1.1-0 hydroweight_2.0.0 tidyterra_0.7.2
[17] terra_1.9-1 lubridate_1.9.4 forcats_1.0.1 stringr_1.6.0
[21] dplyr_1.2.0 purrr_1.2.1 readr_2.2.0 tidyr_1.3.2
[25] tibble_3.3.1 ggplot2_4.0.2 tidyverse_2.0.0 here_1.0.2

loaded via a namespace (and not attached):
[1] DBI_1.3.0 bitops_1.0-9 gridExtra_2.3 tmaptools_3.3
[5] s2_1.1.9 logger_0.4.1 rlang_1.1.7 magrittr_2.0.4
[9] otel_0.2.0 e1071_1.7-17 compiler_4.5.2 png_0.1-8
[13] vctrs_0.7.1 pkgconfig_2.0.3 wk_0.9.5 crayon_1.5.3
[17] fastmap_1.2.0 lwgeom_0.2-14 leafem_0.2.5 utf8_1.2.6
[21] tzdb_0.5.0 spacesXYZ_1.6-0 bit_4.6.0 gert_2.2.0
[25] R6_2.6.1 stringi_1.8.7 RColorBrewer_1.1-3 parallelly_1.46.0
[29] pkgload_1.4.1 stars_0.7-1 Rcpp_1.1.1 usethis_3.2.1
[33] base64enc_0.1-3 timechange_0.3.0 tidyselect_1.2.1 rstudioapi_0.17.1
[37] dichromat_2.0-0.1 abind_1.4-8 maptiles_0.11.0 codetools_0.2-20
[41] listenv_0.10.0 lattice_0.22-7 leafsync_0.1.0 withr_3.0.2
[45] S7_0.2.1 askpass_1.2.1 units_1.0-1 proxy_0.4-29
[49] pillar_1.11.1 whisker_0.4.1 KernSmooth_2.23-26 generics_0.1.4
[53] credentials_2.0.3 vroom_1.7.0 rprojroot_2.1.1 sp_2.2-0
[57] hms_1.1.4 globals_0.18.0 class_7.3-23 glue_1.8.0
[61] tools_4.5.2 leaflegend_1.2.1 sys_3.4.3 data.table_1.18.0
[65] XML_3.99-0.20 grid_4.5.2 crosstalk_1.2.2 colorspace_2.1-2
[69] cols4all_0.10 raster_3.6-32 cli_3.6.5 gtable_0.3.6
[73] digest_0.6.39 classInt_0.4-11 htmlwidgets_1.6.4 farver_2.1.2
[77] htmltools_0.5.9 lifecycle_1.0.5 leaflet_2.2.3 openssl_2.3.4
[81] microbenchmark_1.5.0 bit64_4.6.0-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions