Open premadh opened 7 years ago
I can replicate your problems.
This app was never released and indeed it does not figure on the website (http://emilkirkegaard.dk/understanding_statistics/). I ran into some technical problems when trying to develop it and I gave up/forgot about it.
As I recall -- this was a year ago -- I was trying to make it possible for users to enter the factor loadings into a matrix in the UI. The server would then generate data based on the user inputs in the matrix. However, this required a number of hacks to almost get working. It was working-ish (some bugs, but some fundamental functionality) last time I looked. My guess is that an update to rhandsontable broke it. That package has a version < 1, so presumably is unstable.
I don't have time to develop it further right now. But I added the bugfixes you came up with.
The reason to allow the user to delete columns is if they have to add more group factors (F_) and then delete them again instead of refreshing the page.
I ran into few issues running this example::
Error: could not find function "qgraph.efa" This can be eliminated by loading the library qgraph as:
library(qgraph)
After fixing above: the second error is: Warning: Error in hot_context_menu: formal argument "allowColEdit" matched by multiple actual arguments. And the table on the top left isn't displayed. If that argument
"allowColEdit" = T
is deleted from server.R, the program runs fine. We can add columns. However, when you try and delete a column, we get the error: Warning: Error in colnames<-: 'names' attribute [6] must be the same length as the vector [4]. I got similar error with my own app as well.My session info is ` R version 3.3.2 (2016-10-31) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1
locale: [1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252
[3] LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] qgraph_1.4.0 semPlot_1.0.1 lavaan_0.5-22
[4] stringr_1.1.0 psych_1.6.9 rhandsontable_0.3.4 [7] devtools_1.12.0 shiny_0.14.2 `