ddediu / AdhereR

Computation of adherence to medications from Electronic Healthcare Data in R
26 stars 6 forks source link

Error: shinyjs: extendShinyjs: `functions` argument must be provided. #170

Closed ck2136 closed 3 years ago

ck2136 commented 3 years ago

Hello!

Thanks for making this package which sounds like it should be super helpful in visualizing adherence/persistence/discontinuation. I am getting an error when running the pllot_interactive_cma() function.

plot_interactive_cma()
#> Error in plot_interactive_cma(): could not find function "plot_interactive_cma"

Created on 2021-06-08 by the reprex package (v2.0.0)

Session info

sessioninfo::session_info()
#> - Session info ---------------------------------------------------------------
#>  setting  value                       
#>  version  R version 4.1.0 (2021-05-18)
#>  os       Windows 10 x64              
#>  system   x86_64, mingw32             
#>  ui       RTerm                       
#>  language (EN)                        
#>  collate  English_United States.1252  
#>  ctype    English_United States.1252  
#>  tz       Asia/Seoul                  
#>  date     2021-06-08                  
#> 
#> - Packages -------------------------------------------------------------------
#>  package     * version date       lib source        
#>  cli           2.5.0   2021-04-26 [1] CRAN (R 4.1.0)
#>  digest        0.6.27  2020-10-24 [1] CRAN (R 4.1.0)
#>  evaluate      0.14    2019-05-28 [1] CRAN (R 4.1.0)
#>  fs            1.5.0   2020-07-31 [1] CRAN (R 4.1.0)
#>  glue          1.4.2   2020-08-27 [1] CRAN (R 4.1.0)
#>  highr         0.9     2021-04-16 [1] CRAN (R 4.1.0)
#>  htmltools     0.5.1.1 2021-01-22 [1] CRAN (R 4.1.0)
#>  knitr         1.33    2021-04-24 [1] CRAN (R 4.1.0)
#>  magrittr      2.0.1   2020-11-17 [1] CRAN (R 4.1.0)
#>  ps            1.6.0   2021-02-28 [1] CRAN (R 4.1.0)
#>  reprex        2.0.0   2021-04-02 [1] CRAN (R 4.1.0)
#>  rlang         0.4.11  2021-04-30 [1] CRAN (R 4.1.0)
#>  rmarkdown     2.8     2021-05-07 [1] CRAN (R 4.1.0)
#>  rstudioapi    0.13    2020-11-12 [1] CRAN (R 4.1.0)
#>  sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 4.1.0)
#>  stringi       1.6.1   2021-05-10 [1] CRAN (R 4.1.0)
#>  stringr       1.4.0   2019-02-10 [1] CRAN (R 4.1.0)
#>  withr         2.4.2   2021-04-18 [1] CRAN (R 4.1.0)
#>  xfun          0.23    2021-05-15 [1] CRAN (R 4.1.0)
#>  yaml          2.2.1   2020-02-01 [1] CRAN (R 4.1.0)
#> 
#> [1] C:/~/R/win-library/4.1
#> [2] C:/Program Files/R/R-4.1.0/library

Any ideas? Thanks!

ddediu commented 3 years ago

Hi, first, sorry for the delay: it's been a pretty time of the year... Now, I can't seem to see what version of AdhereR you have installed? Please note that the latest version on CRAN has some issues with Shiny so I'd rather recommend using the code on GitHub if you need interactive Shiny plots: besides working with the latest R and Shiny, it also has some things implemented. Probably the simplest is to install the source packages in the devel branch (please note that there's currently 2 packages: one that implements the base computations and plotting and one that uses those to do the shiny interactive plots): devel source packages Please let me know if this fixes your issues... Best, Dan

ddediu commented 3 years ago

Fixed in version to be soon released (available in the devel branch)