LukasWallrich / metaUI

Create shiny apps that allow explore of meta-analysis results
https://lukaswallrich.github.io/metaUI/
GNU General Public License v3.0
6 stars 0 forks source link

Bugs #28

Closed LukasWallrich closed 7 months ago

LukasWallrich commented 1 year ago

Reported by email:

have encountered a few issues with the generate_shiny() function.

The first is that the create_about() subfunction does not seem to like generating a package list. Initially I was getting the error: image

I was able to get around this by adding list_pakages = F to the call from within generate_shiny(). So no big issue there but something I thought you might want to be aware off.

The second and more significant issue I am running into now is that when I try generate_shiny() I get the error:

Error in purrr::map_chr(): ℹ In index: 2. Caused by error: ! Result must be length 1, not 0. Backtrace:

  1. metaUI::generate_shiny(...)
  2. metaUI:::generate_ui(dataset, dataset_name, about, filter_popups) at C:\Users\284322k\AppData\Local\Temp\RtmpQd7O7P\rstudio-scratch-2da07b0c2173.R:30:2
    1. metaUI:::generate_ui_filters(data, filter_popups)
    2. purrr::map_chr(...)
    3. purrr:::map_("character", .x, .f, ..., .progress = .progress)
    4. purrr:::call_with_cleanup(...)

I’ve got the error on two computers now, one which had a fresh installation of R and Rstudio – so packages etc should be up to date.

LukasWallrich commented 7 months ago

The second error is likely due to filter columns that are not numeric and not factors (typically characters) - need check in prepare_data and possibly again in generate to throw informative error