-
Notifications
You must be signed in to change notification settings - Fork 6
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
reactive Value in recogito() does not trigger re-render, which causes annotations to fail #15
Comments
Which version of the recogito R package are you using? The one released today on cran which is version 0.1.2 or an older one? Please use at least version 0 1.2 which is put today on cran |
Mea culpa. I just updated the version and voilá - it works! |
I've only been testing this in the following setting (only tagging, no relations)
|
Feel free to open up new issues. I mainly use the package for tagging text (relations has not been tested that much), and for the image annotations which have been tested more. |
Thanks again, also for the "next" button example. Looks less convoluted then the load/save logic. I will let you know, if I find anything weird with the relations. Although it does work perfectly well now. |
I see there was still a bug if you are using recogitoOutput together with recogito(type = "relations"), the button on top is not correctly updated, making it sometimes irresponsive. I've made fixes for this in 786212a and 434412d so if you need the relations, you should install the newest package from github, otherwise you can just use the cran version |
Hi,
thank you so much for this great package! I have been trying to build a little annotation tool in shiny that would allow me to have some co-workers create a more standardized annotation process for documents.
Something I am struggling with, is to include a sort of "next" button. It is difficult to build a nice repex, because there is an underlying API that serves the paragraphs to be coded.
Essentially I have built a "load text" button, which calls a new text to be loaded into the recogito rendering. the "Save" button then sends the finished annotations back to the API. I would expect recogito to re-render, whenever I call the "load" button, because of the eventReactive way and the fact that text() is called in the renderRecogito part, linking them. It does load a new text, but sometimes the linkages from the last text are still displayed and it does not properly see annotations anymore.
Do you have any idea how I could force the renderRecogito to kind of like "restart" after loading a new text?
Currently, the only thing that helps is a refresh with F5.
I hope this is remotely understandeable.
The text was updated successfully, but these errors were encountered: