PoonLab / KaphiShiny

A Shiny web interface for running Kaphi
0 stars 0 forks source link

Errors are generated after successfully dynamically generating inputs for priors & proposals #6

Open 0ldM4j0r opened 7 years ago

0ldM4j0r commented 7 years ago

After successfully dealing with issue #1, a bunch of error are thrown:

Warning in structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
Warning: Error in [[: attempt to select less than one element in get1index
Stack trace (innermost first):
    79: renderUI [/home/fabusard/git/KaphiShiny/app.R#352]
    78: func
    77: origRenderFunc
    76: output$Constant CoalescentPriorNe.tauDistributionParameters
     1: runApp
Warning in if (!is.na(attribValue)) { :
  the condition has length > 1 and only the first element will be used
Warning in charToRaw(enc2utf8(text)) :
  argument should be a character vector of length 1
all but the first element will be ignored
Warning in if (!is.na(attribValue)) { :
  the condition has length > 1 and only the first element will be used
Warning in charToRaw(enc2utf8(text)) :
  argument should be a character vector of length 1
all but the first element will be ignored

I am posting this right after fixing issue #1 so I will clean up the code and see where that gets me.

0ldM4j0r commented 7 years ago

Commit 9783a6c42d22f27cbc165665bae52a1049ca352e resulted in a reduction in errors/warnings. The errors/warning are now the following:

Warning in structure(x, class = unique(c("AsIs", oldClass(x)))) :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
Warning: Error in [[: attempt to select less than one element in get1index
Stack trace (innermost first):
    79: renderUI [/Users/faisal/git/KaphiShiny/app.R#350]
    78: func
    77: origRenderFunc
    76: output$const.coalescentPriorNe.tauDistributionParameters
     1: runApp
0ldM4j0r commented 6 years ago

On the multiPageApp branch due to the app being reorganised into multiple pages the errors are now generated when navigating to the page the errors relates to, instead of when the app starts.