Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning from purrr in function seqCluster #395

Open
goepp opened this issue Feb 20, 2024 · 0 comments
Open

Deprecation warning from purrr in function seqCluster #395

goepp opened this issue Feb 20, 2024 · 0 comments

Comments

@goepp
Copy link

goepp commented Feb 20, 2024

🐛 Bug

First, thank you for your work.
Running seqCluster works but throws the following deprecation warning:

Warning message:
There was 1 warning in `mutate()`.
ℹ In argument: `length_value = map_chr(.y, ~ifelse(all(.x == .x[1]), yes = .x[1], no = glue("range_{min(.x)}:{max(.x)}")))`.
Caused by warning:
! Automatic coercion from integer to character was deprecated in purrr 1.0.0.
ℹ Please use an explicit call to `as.character()` within `map_chr()` instead.
ℹ The deprecated feature was likely used in the immunarch package.

To Reproduce

Steps to reproduce the behavior:

Run

library(immunarch)
data(bcrdata)
distBCR <- seqDist(bcrdata$data)
seqCluster(bcrdata$data, distBCR, .perc_similarity = 0.9)

Expected behavior

That no warning is thrown.

Additional context

The result of sessionInfo() is:

R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.2.1

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.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

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: Europe/Berlin
tzcode source: internal

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

other attached packages:
[1] immunarch_0.9.0   patchwork_1.2.0   data.table_1.15.0 dtplyr_1.3.1      dplyr_1.1.4       ggplot2_3.4.4    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant