[Bioc-devel] lipidr: Unable to reproduce error (possibly from S4Vectors)

Shepherd, Lori Lor|@Shepherd @end|ng |rom Ro@we||P@rk@org
Mon Jun 22 13:50:30 CEST 2020


I reinstalled iheatmap yesterday and it should be reflected in today's (Mondays) report.

Cheers,


Lori Shepherd

Bioconductor Core Team

Roswell Park Comprehensive Cancer Center

Department of Biostatistics & Bioinformatics

Elm & Carlton Streets

Buffalo, New York 14263

________________________________
From: Ahmed Mohamed <mohamed using kuicr.kyoto-u.ac.jp>
Sent: Monday, June 22, 2020 2:18 AM
To: Martin Morgan <mtmorgan.bioc using gmail.com>
Cc: Vincent Carey <stvjc using channing.harvard.edu>; Herv� Pag�s <hpages using fredhutch.org>; bioc-devel <bioc-devel using r-project.org>; Shepherd, Lori <Lori.Shepherd using RoswellPark.org>
Subject: Re: [Bioc-devel] lipidr: Unable to reproduce error (possibly from S4Vectors)

Excellent catch Martin.
I was able to confirm the issue using the script below (on Bioc-Devel Docker). The issue was also resolved by simply reinstalling iheatmapr. It would be great if iheatmapr is reinstalled manually on the devel build systems.

remove.packages(c("iheatmapr", "S4Vectors"))
devtools::install_github("Bioconductor/S4Vectors", ref="e8dffc0157f2c4779fce3c85e5ef601bb0a35d33")
install.packages("iheatmapr")
packageVersion("S4Vectors")
# "0.27.0"
packageVersion("iheatmapr")
# "0.4.12"
library(lipidr)
library(iheatmapr)
example("iheatmap")
# Runs successfully

## Update S4Vector
rm(list = ls())
rstudioapi::restartSession()
devtools::install_github("Bioconductor/S4Vectors")
packageVersion("S4Vectors")
# "0.27.12"

library(iheatmapr)
example("iheatmap")
# Error in .wrap_in_length_one_list_like_object(value, name, x) :
#   failed to coerce 'list(value)' to a IheatmapPlots object of length 1

## Reinstall iheatmapr
rm(list = ls())
rstudioapi::restartSession()
install.packages("iheatmapr")
library(iheatmapr)
example("iheatmap")
# Runs successfully


Cheers.
Ahmed.

On Thu, 18 Jun 2020 at 00:52, Martin Morgan <mtmorgan.bioc using gmail.com<mailto:mtmorgan.bioc using gmail.com>> wrote:
You can see package versions on the build system from

  https://bioconductor.org/checkResults/devel/bioc-LATEST/index.html<https://secure-web.cisco.com/1HWo5rIWA1m5ihxjEdHQES7eiiUCH5lqvmKOON4J2Nm8lJSd6ncmMQs2_hUktt5pXPTp1smrU6cKa4190T7elc944QS2Ydfuvp0t0c29VorU11a_JwrxBfbADYAfJGX5CDQJNzcBds5IVb_Ltdmsg7t8Ld_JyXp3M7L7uW2MvmMMnH8ci3Phnzvw_iaOi0u9G-l54dBJQI5av1sYcF-XB-chvqVtJ_doIbdWZgo0cQbvpDTl4qwhMSI3-T5j57ghQcQiG5qiGemiudrobXzA6XqKDpvteiE2tnv1JEegc1WaEKcl6RRjDDR3DXUQOSDD-iwfdcr_fKL4y8BIfVSxVcfA9foqFw5ODRUoVPtzsaS0/https%3A%2F%2Fbioconductor.org%2FcheckResults%2Fdevel%2Fbioc-LATEST%2Findex.html>

clicking on 'installed pkgs' link in the center top table. iheatmapr is at version 0.4.12.

I think what is happening is like https://support.bioconductor.org/p/131689/#131695<https://secure-web.cisco.com/1CwyVIg3N8SoBBwdD_FZCiSutr81swQb4KYpE6AXzbu-D36e_5eSxfAEMhJSyL-J7KoruFV35JklCfpumYnw_PV4SpILT4B7wuZtuwXsxnWJYFdapO9ukunWgWn39PwtvG1o5zkiJjv1wwLOio-63U40zo3qPGplTSe3XQN4LtamopYmUBwTYsEewP58hJ4qna2-BpptSChUQo998UFg55JhNHe8ejCjdB1IvVvZSikJx2zpcqfEQZ-kvLK_NcASuHZk8jVRxH9LtAiCXae2enWAZvaXxUDc-_0Oiov8GTnMdglDnbpl2KouhuA9_2xdNAvcsZwWynXeOmu0sJhz8GA/https%3A%2F%2Fsupport.bioconductor.org%2Fp%2F131689%2F%23131695> where S4Vector method has been changed but packages that use it have a methods table that is cached when the package is installed.

So there are no errors if you do a new install of packages (like on CI or the docker) but not if the iheatmapr package has already been installed (as I guess on the build system).

This means that the only way to reproduce this would be to install a previous version of S4Vectors, then install iheatmapr to capture the old methods table, then install the current version of S4Vectors. But at the end of the day the solution is (a) for iheatmapr to be updated on the build systems and ideally (b) for iheatmapr to bump it's version. A version bump would be trivial if it were a Bioconductor package, but could be problematic for CRAN. I did bcc the maintainer.

I don't think you should work around this (e.g., by disabling the example) because, at least if it were me, I'd forget to reenable this and hence end up with less extensive testing of my package (and the overall Bioconductor ecosystem).

Maybe @Herv� Pag�s will chime in; my diagnosis could be wrong.

Martin

On 6/17/20, 6:56 AM, "Bioc-devel on behalf of Ahmed Mohamed" <bioc-devel-bounces using r-project.org<mailto:bioc-devel-bounces using r-project.org> on behalf of mohamed using kuicr.kyoto-u.ac.jp<mailto:mohamed using kuicr.kyoto-u.ac.jp>> wrote:

    Thanks Vincent.

    I would like to debug the error, but I still cannot reproduce it.
    SessionInfo, below, shows update to date versions! My Travis build also
    works, with Bioc Devel and iheapmapr 0.4.12 (
    https://travis-ci.org/github/ahmohamed/lipidr/jobs/696329028#L2718<https://secure-web.cisco.com/1If8yOo3b_xBYYwzpHg-c7ZSLnTAhugHgmCjgkxTHiPbgSmK-eSNwegV5ae_l5VcGUe0rds-f7dFKtbjP7jCW1gpaFTioG1RhvwHy1xdrRWcQt-RqbT5PGC_IDlLdsQe132vjO1GjpChUt_K8tweNVhePXGcHlTmc_KOfzswdP_0X9YEmStFcons03ZGXW-lRS3oObzAeqSeuMiqJwarP6pM87LZPguM8Z6aotYwPlhBqwjaFubrbVbeQWJYtOkMXvOUzTo-0LaJAc1fhF7z-ZNlnVXYTGY9b7Yh-OQrG9rQzucF3nO4J7jl48ZhfGNTuoNbb0e7opYwWBH7qWU-ptw/https%3A%2F%2Ftravis-ci.org%2Fgithub%2Fahmohamed%2Flipidr%2Fjobs%2F696329028%23L2718>). What
    am I missing?

    > sessionInfo()R version 4.0.0 (2020-04-24)
    Platform: x86_64-pc-linux-gnu (64-bit)
    Running under: Ubuntu 18.04.4 LTS

    Matrix products: default
    BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so<http://secure-web.cisco.com/1oB-H4JrlZ3Yw2PA1QlZgPu-_XEPyS21Qc6ieR-urRitGqbuk0Me344f9ma39c2DI9zAMJLdWApN4WESftimsVP0KegYiLOCcT8vFiUci3sKe0rUYtsktX5YSyEJXLBEt9y9ucaujFQYeZUdyqYdVcm94SMos00SQgQ6oK_PBNeHCk6ZnNtnKfoPhBQJ4Od-urXG9Y47nMj_URgWBajqf9spQcOmCUi9JWW6fbiPPcK1cDYYZ-giE78iwi4fNHcQSJeltQd2s7VVYdbgj8Tmu-UW0evWQXfkqNWY7YFjVOlbLM1qiQ7s3VPbNtiv0BlhX/http%3A%2F%2Flibopenblasp-r0.2.20.so>

    locale:
     [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
    LC_TIME=en_US.UTF-8
     [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8
    LC_MESSAGES=C
     [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
    LC_ADDRESS=C
    [10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8
    LC_IDENTIFICATION=C

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

    other attached packages:
     [1] lipidr_2.3.0                SummarizedExperiment_1.19.5
    DelayedArray_0.15.4
     [4] matrixStats_0.56.0          Matrix_1.2-18
    Biobase_2.49.0
     [7] GenomicRanges_1.41.5        GenomeInfoDb_1.25.2
    IRanges_2.23.10
    [10] S4Vectors_0.27.12           BiocGenerics_0.35.4
    iheatmapr_0.4.12
    [13] BiocManager_1.30.10

    loaded via a namespace (and not attached):
     [1] fastcluster_1.1.25     tidyselect_1.1.0       xfun_0.14
     [4] purrr_0.3.4            lattice_0.20-41        colorspace_1.4-1
     [7] vctrs_0.3.1            generics_0.0.2         htmltools_0.5.0
    [10] yaml_2.2.1             rlang_0.4.6            pillar_1.4.4
    [13] glue_1.4.1             RColorBrewer_1.1-2     GenomeInfoDbData_1.2.3
    [16] lifecycle_0.2.0        plyr_1.8.6             zlibbioc_1.35.0
    [19] munsell_0.5.0          gtable_0.3.0           htmlwidgets_1.5.1
    [22] knitr_1.28             forcats_0.5.0          Rcpp_1.0.4.6
    [25] scales_1.1.1           limma_3.45.7           jsonlite_1.6.1
    [28] XVector_0.29.2         farver_2.0.3           ggplot2_3.3.1
    [31] digest_0.6.25          dplyr_1.0.0            ropls_1.21.0
    [34] grid_4.0.0             tools_4.0.0            bitops_1.0-6
    [37] magrittr_1.5           RCurl_1.98-1.2         tibble_3.0.1
    [40] ggdendro_0.1-20        tidyr_1.1.0            crayon_1.3.4
    [43] pkgconfig_2.0.3        MASS_7.3-51.5          ellipsis_0.3.1
    [46] data.table_1.12.8      rstudioapi_0.11        R6_2.4.1
    [49] compiler_4.0.0


    On Wed, 17 Jun 2020 at 20:12, Vincent Carey <stvjc using channing.harvard.edu<mailto:stvjc using channing.harvard.edu>>
    wrote:

    > I can reproduce the error, which arises from iheatmapr.  Note that
    >
    >
    > http://bioconductor.org/checkResults/devel/bioc-LATEST/malbec1-R-instpkgs.html<http://secure-web.cisco.com/1rYAquRJ83K8T643flMr_bBScyZIdY3FrFaIgQuLbXOutf_gMOARcKj8K0yRn8yfyYNA-tBjkjHdgxgEWDc0sGvqg_vwn7R55w8NVN-SfRM2nbUZerRc7yDry_zAwNTTRRb9BOD3-7qkauyY76VrBbr7-zRaACgHUYUrHfL-ylWki8L-1WdP3bSpJrKBeE3v2YastiiLk6nB5sjW8KdCTE3ZjdW4l6MsePg4bvxEPVErCoRuSnNH4IU-JINZxMtP4J0JI-0eSmEkbPZVyaDzghsrg43By7CkTcO8YBMGure9h_5T16JTLfyjcY9787BWxCIpuE3xpyIvTEyArZTcp-sdcJvAOq1DrOlGZADJbFlU/http%3A%2F%2Fbioconductor.org%2FcheckResults%2Fdevel%2Fbioc-LATEST%2Fmalbec1-R-instpkgs.html>
    >
    > shows that iheatmapr is 0.4.12 and on my system example(iheatmap) fails
    > with the
    > error you showed.  In future please provide sessionInfo() result when
    > reporting a
    > problem.
    >
    > on my system, example(iheatmap) dies in an unexported function
    > main_heatmap.  iheatmapr is an ropensci
    > package that depends on S4Vectors.  it may only be tested with the release
    > version.  You
    > can see at https://travis-ci.org/github/ropensci/iheatmapr/jobs/698340792<https://secure-web.cisco.com/1toYZijsIXYXOR4zKGyDP7D87ey2EH-PxaCkim9T1DT0pvFx6FsE_VJB4nz0pjeqALv31old7FYtdr-rpkSDgjhNZ___k2qnRRfJIaPq71xuxJBmBMfni8somrI_iZqUMK13nOQQmm5bLdh9-kDE-N5fWr6lHIP_zP4OfdkzPJ3XDsGIgFntgmMVGn8Lr7c1jxrbwjjM0jKzq08i2c2bUm1CTyNaEnjIMtHxFK4cMvlPgkcAm44HgS5V9Xxf9xvjTPuyqsYXu9PFIvp03yR44hWquLfDEHemNIOyMHP-v9c2UBGlmBtvKSYYV_0Oq6Rrbhudfj_tpoQEfp09_HbHmoQ/https%3A%2F%2Ftravis-ci.org%2Fgithub%2Fropensci%2Fiheatmapr%2Fjobs%2F698340792> that
    > iheatmapr
    > is passing its tests.  i don't know how to determine what packages were
    > used in the tests.
    >
    > you might want to condition out your example for now.  perhaps you can
    > debug iheatmapr against
    > current S4Vectors and suggest the solution to iheatmapr authors
    >
    >
    > On Wed, Jun 17, 2020 at 1:26 AM Ahmed Mohamed <mohamed using kuicr.kyoto-u.ac.jp<mailto:mohamed using kuicr.kyoto-u.ac.jp>>
    > wrote:
    >
    >> Hi all,
    >>
    >> My package "lipidr" has been failing checks for a while, giving the error
    >> below:
    >>
    >> Error in .wrap_in_length_one_list_like_object(value, name, x) :
    >>   failed to coerce 'list(value)' to a IheatmapPlots object of length 1
    >>
    >> (Full report here:
    >>
    >> http://bioconductor.org/checkResults/devel/bioc-LATEST/lipidr/malbec1-checksrc.html<http://secure-web.cisco.com/1BmOiFuqUzjQClVteG9kNuRUbaCYyUKcVPJCpRdxSZP0gTKw8ameWB9wiERTs4z4PDu0QUk7LJm2OtnUAbfa1I4j5le5O8d07Gbm_arj2XtmSi7lZHl75jGmsThiQv-FeQUH0gDkZMb1RiNWpPJVd8_hN84qX8baWqAWsMFZv17HnyHwYSd9-znXCojeUOB7q26Ht_B-5sVwuAJS3uKTt7NuarJEkEJYKU9iQdGqcyPlKNjZfbJkB_z_mLtmcP8IHBQIcFFw5x30MSqPtogb0jSShK0GCo9zcC6Y3EpsqMFfkFiwrti6ne5hwKWY_WW6lEAw5zaPZ_zADRAqJGOkAhjFLLUHt7nDJlEa59HTg3EM/http%3A%2F%2Fbioconductor.org%2FcheckResults%2Fdevel%2Fbioc-LATEST%2Flipidr%2Fmalbec1-checksrc.html>
    >> )
    >>
    >> The error seems to originate from S4Vectors package, which lipidr depends
    >> on (indirectly through SummarizedExperiment). However, I am completely
    >> unable to reproduce this error. This is what I did:
    >> - Installed Bioc-devel docker image
    >> - run the faulty example alone, as well as devtools::check(), both without
    >> errors.
    >> - Ran BiocManager::install(update = TRUE) to pick up updates not
    >> propagated
    >> to the docker image
    >> - I even installed S4Vector from GitHub, just in case the git checkout is
    >> ahead of Bioc.
    >>
    >> Faulty example:
    >> https://github.com/ahmohamed/lipidr/blob/master/R/plot.R#L345<https://secure-web.cisco.com/1OunJfN09-2MUlC7zx-CAGzhzcy7ZNxORtmk8rEtDuTbXlAvs4PoW4aX4j30HNb9yu3UixDykENvVjaeKhVQ4zultTujUqR9FIbHpE7MyhKt98YBG0tVROeEey6EXpQyiKKn_piPHRd1vk80mfoYM_eaK6OCAuNgCEgigOERqksAttGjZmGj0WoWr_2PXYjh3mbH8fQaA5ctz19a8hAIEheM3Kib2PqIGxtI3eoEVuUG6qpXG4vsTxzc4o_1UQxEfUqP-CeAFOiWzilfvghN_v1yDZklXca71b2V6Bec-4C06ZSqgQS4Nfm99TkLx0MjQ_MVzsmzCAKl9Kfnu9ukuTg/https%3A%2F%2Fgithub.com%2Fahmohamed%2Flipidr%2Fblob%2Fmaster%2FR%2Fplot.R%23L345>
    >>
    >> Any suggestions would be appreciated.
    >> Thanks.
    >> Ahmed.
    >>
    >>         [[alternative HTML version deleted]]
    >>
    >> _______________________________________________
    >> Bioc-devel using r-project.org<mailto:Bioc-devel using r-project.org> mailing list
    >> https://stat.ethz.ch/mailman/listinfo/bioc-devel<https://secure-web.cisco.com/1rCfz730rGCnzXftnnEZ4ZbgJoGSIj07RgWlHH7EiQOJQeX09SgXdVZc-muafIfUkmvyu9xBsHteskj7txQq4KM-c6nfnvVrDsvD3n3Krf2c0KLAHxKxXc1QK0xj8XSceH6wF72AkzPTQ0ybob1t8kDLdECcsJuAD9kNerev5OzzRMhy22ASuWhtPTCfZKknkN5GE8KrQAodhmjHDpXZ60rrdYtNP0uqfBrYQTN-aeXmOtVrZP28uvu2ELY6u0zDGpMWKLBT68MlDtZi96ANrFXDzJJfGWtwaka_SUjgKIeU5jkWYPGLi7PxLUC0l3xoW-lciK6KlFKB0EFaTAM4e4g/https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fbioc-devel>
    >>
    >
    > The information in this e-mail is intended only for th...{{dropped:15}}

    _______________________________________________
    Bioc-devel using r-project.org<mailto:Bioc-devel using r-project.org> mailing list
    https://stat.ethz.ch/mailman/listinfo/bioc-devel<https://secure-web.cisco.com/1rCfz730rGCnzXftnnEZ4ZbgJoGSIj07RgWlHH7EiQOJQeX09SgXdVZc-muafIfUkmvyu9xBsHteskj7txQq4KM-c6nfnvVrDsvD3n3Krf2c0KLAHxKxXc1QK0xj8XSceH6wF72AkzPTQ0ybob1t8kDLdECcsJuAD9kNerev5OzzRMhy22ASuWhtPTCfZKknkN5GE8KrQAodhmjHDpXZ60rrdYtNP0uqfBrYQTN-aeXmOtVrZP28uvu2ELY6u0zDGpMWKLBT68MlDtZi96ANrFXDzJJfGWtwaka_SUjgKIeU5jkWYPGLi7PxLUC0l3xoW-lciK6KlFKB0EFaTAM4e4g/https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fbioc-devel>


This email message may contain legally privileged and/or confidential information.  If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited.  If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.
	[[alternative HTML version deleted]]



More information about the Bioc-devel mailing list