-
Notifications
You must be signed in to change notification settings - Fork 39
Embedding in rNotebook/knitr using R Markdown in RStudio #39
Comments
Hey Roy, you can just do clickme(points, 1:10)$iframe() On Saturday, July 27, 2013, royfrancis wrote:
|
Well.. Something is happening, but it still doesn't produce the graph. It produces an empty rectangle. Maybe it doesn't point to the right path. I have attached the output I get as an image. I have tried to open this in a browser and I get an empty grey box. I am doing this in RStudio and an R Markdown. Here is how my code looks like: library(clickme)
c1<-clickme(points, 1:10)
c1$iframe() |
Hey Roy, |
I can confirm that it does NOT work with R Markdown, and I get a same blank screen. Digging deeper, here is what I realized. Calling <iframe width = "1000" height = "724" src="temp-Points.html"> </iframe> But the
So, your I tested it from the R console, and it leads to the same error. |
Good catch.Thanks for the feedback. One option is to set the directory explicitly: clickme(points, 1:10, dir = getwd())$iframe() By default Also, I just pushed a new commit to fix the frameborder and the height scroll. You can update with library(devtools)
install_github("clickme", "nachocab")
library(clickme") |
Ok. I just tried it out and it works. Now the AccessDeniedAccess Denied364B39C1DF230F7BtbwaOKfBHcNpzjuMcBixVHEcLkqEjsNqZTN8xMdi66c9SYtRGPHYAbkUqPKuiMzx But, everything else (like other plots and content) gets published. |
The clickme js and css assets probably are still linked to a folder on your computer, which is why they are not showing up on RPubs. |
Ah yes. We probably need something like |
It's probably because you don't have coffeescript install, you can get it On Sun, Sep 7, 2014 at 4:58 AM, TC [email protected] wrote:
|
Hi,
What is the best way to embed the chart/plot into an rNotebook/knitr rather than open as a new tab?
Thanks,
Roy
The text was updated successfully, but these errors were encountered: