Error on R shiny app metaOmics; object %AND% not found
1
0
Entering edit mode
2.5 years ago

I'm trying to get a shiny app on R to work, i follow the steps (libraries needed to install on R from the tool tutorial), but the new shiny window that appears shows the message error: object '%AND%' not found. (the app is available on docker and when I pull it through docker it works but I need to work on R on my comp.) Does anyone have any advice what could be missing/ done to address that error? the tool is metaOmics https://github.com/metaOmics/metaOmics in case someone has experienced it in specific Thank you,

Shiny R metaOmics • 1.3k views
ADD COMMENT
0
Entering edit mode

Compare R versions maybe? First step would be to find which package exports the %AND% operator.

ADD REPLY
1
Entering edit mode

There is a git issue open about this message. If you look at the code, the only reference to %AND% is inside directoryInput.R:

shiny:::`%AND%`(label, tags$label(label))

The shiny code doesn't seems to contain any %AND%.

ADD REPLY
0
Entering edit mode

Good catch on the usage! OP should add their experience on that git issue - that issue looks woefully under-detailed.

ADD REPLY
2
Entering edit mode
2.5 years ago
fracarb8 ★ 1.7k

I found this message on the issue section of another app (statOmics):

Apparently the shiny:::%AND% function was removed from the shiny package while MSqRob was depending on it.
I have re-introduced this function, everything should now work again.
Please try reinstalling MSqRob via
devtools::install_github("statOmics/MSqRob@MSqRob0.7.7")

I am not sure what is the relationship between statOmics and metaOmics, but you can try to re-define %AND% yourself.

# deprecated definition
`%AND%` <- function(x, y) {
    if (!is.null(x) && !isTRUE(is.na(x)))
       if (!is.null(y) && !isTRUE(is.na(y)))
          return(y)
    return(NULL)
}

Also here on biostar

ADD COMMENT

Login before adding your answer.

Traffic: 2152 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6