Closed bblodfon closed 4 years ago
Just checked that it works with version 2.4.2
.
Can you reinstall the package? Version 2.5.4 is a version still under development and at the time you installed, it might be still not usable.
On my laptop, with the newest version, it works fine:
Hi @jokergoo, I installed the 2.5.4
version like 15 hours ago and I do not see any commits since then, so the problem will be there still. I believe though that it has to do with the R version and dependencies updates. Since it works with the latest version from Bioconductor with the respective R version, I will close this issue (unless it manifests itself later and needs to be reopened :)
@bblodfon @jokergoo
Reverting to commit 808d354 solves the issue.
Em... I noticed you are using Rstudio which I haven't tested...
Hi, I finally captured this error. It is due to the difference between R3.6 and R4.0. Now I have fixed it. It works for both R versions.
Hi, I finally captured this error. It is due to the difference between R3.6 and R4.0. Now I have fixed it. It works for both R versions.
I am using "R version 3.6.2 (2019-12-12) and packageVersion('ComplexHeatmap'): ‘2.5.4’, and I am still facing the error:
Error in guess_align_legend(object, object@heatmap_legend_param$size, : 'list' object cannot be coerced to type 'double'"
@YingjieLiScience Can you try to restart your R session? I tried with R3.6.2 and it works fine.
> m = matrix(rnorm(100), 10)
> Heatmap(m)
> sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.4
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] grid stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] ComplexHeatmap_2.5.4 colorout_1.2-1
loaded via a namespace (and not attached):
[1] circlize_0.4.9 IRanges_2.18.3 png_0.1-7
[4] digest_0.6.25 stats4_3.6.2 GlobalOptions_0.1.2
[7] S4Vectors_0.22.1 GetoptLong_0.1.8 RColorBrewer_1.1-2
[10] rjson_0.2.20 parallel_3.6.2 compiler_3.6.2
[13] clue_0.3-57 BiocGenerics_0.30.0 colorspace_1.4-1
[16] cluster_2.1.0 shape_1.4.4
If it still fails, can you paste the output of ComplexHeatmap:::draw_legend
?
Thanks @jokergoo ! my code works well now.
Great!
Hi,
I recently updated to the development version (
2.5.4
) and I found this error when I run the default example (the legend is not shown):Error in guess_align_legend(object, object@heatmap_legend_param$size, : 'list' object cannot be coerced to type 'double'
Here is my R session info: