dr-consulting / ibi_VizEdit

Programming Components for Modeling & Editing Heart Rate Data
0 stars 3 forks source link

Crashed after GP Imputation #58

Closed matgbar closed 6 years ago

matgbar commented 6 years ago

The imputation ran to completion, but the extract() function did not work. The following warning appeared:

Warning: Error in UseMethod: no applicable method for 'extract_' applied to an object of class "stanfit"
  75: extract_
  74: extract.default
  72: observeEventHandler [/home/mbarsted/GitHub/IBI_VizEdit/VizEdit_v1_2_3.R#1852]
   1: runApp
matgbar commented 6 years ago

It would appear as though the problem is related to the tidyr function extract. Need to unload all packages from the environment prior to running the program. Probably a good practice any way to assume whatever is in the user's R environment when they run the app could conflict with the code.

Added new code that wipes the package slate clean when the program starts.

Should fix the problem in this case.