{"action":"created","issue":{"url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/219","repository_url":"https://api.github.com/repos/ramnathv/htmlwidgets","labels_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/219/comments","events_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/219/events","html_url":"https://github.com/ramnathv/htmlwidgets/issues/219","id":166435898,"number":219,"title":"htmlwidgets doesn't work in JS Reveal","user":{"login":"johncarew","id":19955263,"avatar_url":"https://avatars.githubusercontent.com/u/19955263?v=3","gravatar_id":"","url":"https://api.github.com/users/johncarew","html_url":"https://github.com/johncarew","followers_url":"https://api.github.com/users/johncarew/followers","following_url":"https://api.github.com/users/johncarew/following{/other_user}","gists_url":"https://api.github.com/users/johncarew/gists{/gist_id}","starred_url":"https://api.github.com/users/johncarew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johncarew/subscriptions","organizations_url":"https://api.github.com/users/johncarew/orgs","repos_url":"https://api.github.com/users/johncarew/repos","events_url":"https://api.github.com/users/johncarew/events{/privacy}","received_events_url":"https://api.github.com/users/johncarew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-19T21:07:40Z","updated_at":"2016-07-20T18:18:11Z","closed_at":null,"body":"I am trying to add HTML widgets from the htmlwidgets package, such as rbokeh and visNetwork elements, to a JS Reveal presentation, but they do not always appear on the slides. They will appear on the slides as long as they are the first things in the presentation, but after anything other than r code for a widget is placed in the presentation, widgets on later slides will not appear. The code will compile and knit, so I am calling all the correct packages. \r\n\r\n    # Topic 1\r\n\r\n    ## Some Bullets\r\n\r\n    - Here\r\n    - Is some\r\n    - Info\r\n\r\n    # HTML widgets {class=\"center\"}\r\n    \r\n    ##rbokeh plot\r\n    <header2>Topic 13</header2>\r\n    \r\n    ```{r}\r\n    library(rbokeh)\r\n    figure(width = NULL, height = NULL) %>%\r\n      ly_points(Sepal.Length, Sepal.Width, data = iris,\r\n        color = Species, glyph = Species,\r\n        hover = list(Sepal.Length, Sepal.Width)\r\n    ```\r\n\r\nThus, the above code will produce a slide with \"Some Bullets\" as the header followed by three bullets, and then a blank slide with the title \"rbokeh plot.\"\r\n\r\nAdditionally, sometimes html widgets after other content will appear in the preview window (the window that opens after I press knit), but when I open the presentation in my browser, the widgets disappear. I tried comparing the .html documents produced by the R markdown codes of the presentations with widgets appearing and those without widgets appearing, but the two files seemed to be identical.  If anyone has any idea why this is happening or how to remedy it, it would be much appreciated!  \r\n\r\nIt seems that the widget will appear in the preview window if the window opens to the slide with the widget on it. When the preview window opens to the title slide or bulleted slide, the html widget does not appear. Is it possible to force the widgets to load before the rest of the presentation, but for the presentation to still open with the title slide? Perhaps that would make the widgets appear."},"comment":{"url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/comments/234035279","html_url":"https://github.com/ramnathv/htmlwidgets/issues/219#issuecomment-234035279","issue_url":"https://api.github.com/repos/ramnathv/htmlwidgets/issues/219","id":234035279,"user":{"login":"hafen","id":1275592,"avatar_url":"https://avatars.githubusercontent.com/u/1275592?v=3","gravatar_id":"","url":"https://api.github.com/users/hafen","html_url":"https://github.com/hafen","followers_url":"https://api.github.com/users/hafen/followers","following_url":"https://api.github.com/users/hafen/following{/other_user}","gists_url":"https://api.github.com/users/hafen/gists{/gist_id}","starred_url":"https://api.github.com/users/hafen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hafen/subscriptions","organizations_url":"https://api.github.com/users/hafen/orgs","repos_url":"https://api.github.com/users/hafen/repos","events_url":"https://api.github.com/users/hafen/events{/privacy}","received_events_url":"https://api.github.com/users/hafen/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T18:18:11Z","updated_at":"2016-07-20T18:18:11Z","body":"I've run into issues with hover not working in rbokeh and others when the size of the element is controlled using the css `scale` transformation.  In those cases I don't think the hover location information is processed with respect to the scaling.  I wonder if reveal is using this approach to adjust the size of your content to fit whatever size the browser window is."}}
{"actor":{"display_login":"hafen"}}