Skip to content

Error in .read_imzML: unused argument (attach.only = TRUE) when using Shiny installation #83

@lauerFR

Description

@lauerFR

Hello,

I encountered an error when importing files through a Shiny-based installation of Cardinal.
The same files load correctly when using the standalone Windows version.
(I passing to Shiny on a Linux environment due to memory limitations with the full dataset)

The error message is :

Warning in readImzML(file, ...) : 'attach.only' is deprecated.
Use 'memory' instead.
See help("Deprecated")
parsing imzML file: ‘/home/USER/msi-neg-exu-twholeimage.imzML’
Warning: Error in .read_imzML: unused argument (attach.only = TRUE)

Traceback :

  157: readImzML
  156: Cardinal::readMSIData
  155: FUN
  154: lapply
  153: readMSI
  152: renderPrint
  151: func
  135: renderFunc
  134: valueFunc
  115: func
  113: f
  112: Reduce
  103: do
  102: hybrid_chain
  101: output$uploadData_1-readImzML_1-msiDataInfo
    3: runApp
    2: print.shiny.appobj
    1: <Anonymous>

It appears that readImzML() still accepts the deprecated argument attach.only, but forwards it through .read_imzML(), whose signature no longer includes this parameter, and as a result, .read_imzML() throws an ununsed argument error.

This issue does not occur with the standalone Cardinal installation, but only when using the Shiny app. It seems to me that all the dependencies were installed in their latest version available, so surely in one of them the deprecated argument is now removed?

Is there a list somewhere of the dependancies version that are used in the standalone? Or would it be possible to fix this issue in your Git repository, so that future installations will not run into this error anymore?

Thanks a lot for your work on Cardinal!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions