-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to combine LDAvis output into a shiny app #27
Comments
Hi Thomas. I'm glad you brought this up. The JavaScript code isn't very modular, which makes it hard to extract/reuse components of the viz, but if you just want to embed the entire output in a shiny app, there is hope. That being said, if you want the LDAvis output to react to shiny inputs, it probably won't be very quick to respond simply because a good amount of computation is required in order to Anyway, I started this pull request to make it easy to embed LDAvis in a shiny app (or interactive rmarkdown document). It'd be great if you could help us test it out and provide feedback. devtools::install_github("cpsievert/LDAvis@shiny")
rmarkdown::run(system.file("examples/rmarkdown.Rmd", package = "LDAvis")) |
Dear Carson, Thank you very much for your quick solution! Regards |
Quick question: ui.R: server.R: I appreciate any help you can offer. |
Thank you for your help. |
Error in normalizePath(directoryPath, mustWork = TRUE) : I got this error when I run the app. Hope you could help me with this. |
any comment on the above even am getting the same error |
This problem has been addressed in different R visualization packages. It seems that you should make sure the library names you are referencing are in the correct case. library(LDAvis) In server.R: In ui.R: |
server.r library(LDAvis) Ui.r library(LDAvis) still after looking in to the library names(correcting cases) am getting the same error. ERROR: path[1]="": The filename, directory name, or volume label syntax is incorrect. earning call is the output of Earning_call <- list(phi = phi, |
Unfortunately, I am unable to replicate your issue. A few other threads mention to use the development version of the package devtools::install_github("cpsievert/LDAvis") This also solved my issue from several months ago, so I suggest trying that and also restarting R. |
I got the following error (No idea of the solution):
Server.R
ui.R
Thanks for any commentary !! |
Dear Carson,
I recently discovered the LDAvis package and I am highly interested in the outputs you have been able to generate in a browser via the serVis function (I am no js knowledge so it's great to be able to leverage such tools in my analysis).
Working part of a data scientist team, I would like to be able to integrate the serVis output into some of our own shiny apps, in order to enrich our text mining capabilities.
Is that feasible? If yes, which render* and which *Output should be used?
Congratulations again for this great package!
Best regards,
Thomas
The text was updated successfully, but these errors were encountered: