Reporting error: sensitivity and specificity in shiny app
TomKellyGenetics opened this issue · comments
Describe the bug
Shiny app () returns error as shown:
ntot' required when 'prev' is specified
To Reproduce
See screenshots. Hosted locally with:
launch_presize_app()
Development version installed with remotes::install_github("aghaynes/presize")
. Commit: aghaynes@a917c32
Expected behavior
Prevalence input is required by ShinyApp. It is possible to use a button to disable it. Slider could be removed from UI with conditional input.
Estimating sample size from conf.width
without specifying n
is not currently supported in Shiny App. Cannot specify ntot
from Shiny App.
Screenshots
Desktop (please complete the following information):
R version 4.0.3 (2020-10-10)
os macOS Catalina 10.15.7
system x86_64, darwin17.0
presize * 0.2.2 2021-04-07 [1] Github (aghaynes/presize@a917c32)
As a note on the Shiny App. The locale issue discussed in #61 seems to be resolved now. The Shiny App launches in various locale settings and I cannot reproduce the error (possibly caused by dependencies).
> Sys.setenv(LANG = "fr")
> 2 = x
Error in 2 = x : membre gauche de l'assignation (do_set) incorrect
> presize::launch_presize_app()
Listening on http://127.0.0.1:6747
> Sys.setenv(LANG = "ja")
> 2 + x
エラー: オブジェクト 'x' がありません
> presize::launch_presize_app()
Listening on http://127.0.0.1:6747
> Sys.setenv(LANG = "")
> presize::launch_presize_app()
Listening on http://127.0.0.1:6747
> Sys.setenv(LANG = "en")
> 2 + x
Error: object 'x' not found
> presize::launch_presize_app()
Listening on http://127.0.0.1:6747
> Sys.setenv(LANG = "UTF8")
> 2+ x
Error: object 'x' not found
> presize::launch_presize_app()
Listening on http://127.0.0.1:6747
thanks for reporting this @TomKellyGenetics, I'll make the fix... should be easy enough i think...
I've tested installing from GItHub and verified that the Shiny App now works as expected. 👍