swarm-lab / editR

A Rmarkdown editor with instant preview
GNU General Public License v3.0
350 stars 30 forks source link

Preview pane does not update after adding additional plot #14

Open jet1966 opened 8 years ago

jet1966 commented 8 years ago
  1. Thanks for a great product. I am using it to document research and data analysis, and have come to find it extremely useful in a very short time.
  2. Unfortunately, I've run into a problem which has been tricky to isolate. As the subject line states, my preview pane will freeze at a certain point, once I add a plot to a new code block. The preview does not update and grays out, but the interface remains responsive. If I comment out the last plot line, it will then update.
  3. I can move the plot to the previous code block, and then the preview will update properly.
  4. I've also found that if I remove a code block earlier in the document (even by just removing the end of one, and the beginning of another), then the plot in the last code block will preview properly. I currently have 18 code blocks in the document that will render. Adding the 19th seems to be the breaking point.
  5. I've also tested and found that if I ask to render the document while the preview is grayed out, the rendered document shows the graph correctly.
  6. I tested with multiple browsers (Firefox, Chrome, and Midori), and the problem persists.
  7. I had a colleague test my .Rmd file on his (Archlinux) machine, and the problem does not exist there, so it is somehow tied to my configuration or platform. I also rendered the document on my machine using Rnotebook, and it renders fine.
  8. Some details on my system: Ubuntu 14.04.3 LTS, 8GB RAM, Sony Vaio, R version 3.2.2 (2015-08-14), editR 0.2.2

Any help? Happy to provide more details if needed. I'd like to stay with editR if possible. It has greatly improved my productivity.

jet1966 commented 8 years ago

Sorry all, I have solved my problem. I found that I had inadvertently edited another, longer document in the same directory while in "sudo R", and so the later figures had been stored with root permissions. When I started this second document later using my own permissions, editR could not open or generate any of the later plots (which apparently are all stored under a standard name, and thus had the root permissions from the previous document), and so would just gray out the preview.

BTW - I finally discovered my problem through some of the error messages in rNotebook, so perhaps passing on error messages in editR could be improved. It would also be useful to have a way to view warnings generated by R code, if that is not already possible. I couldn't find that capability.