{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/flexdashboard/issues/48","repository_url":"https://api.github.com/repos/rstudio/flexdashboard","labels_url":"https://api.github.com/repos/rstudio/flexdashboard/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/flexdashboard/issues/48/comments","events_url":"https://api.github.com/repos/rstudio/flexdashboard/issues/48/events","html_url":"https://github.com/rstudio/flexdashboard/issues/48","id":158506303,"number":48,"title":"flexdashaboard fail to load customize js.","user":{"login":"harryprince","id":5362577,"avatar_url":"https://avatars.githubusercontent.com/u/5362577?v=3","gravatar_id":"","url":"https://api.github.com/users/harryprince","html_url":"https://github.com/harryprince","followers_url":"https://api.github.com/users/harryprince/followers","following_url":"https://api.github.com/users/harryprince/following{/other_user}","gists_url":"https://api.github.com/users/harryprince/gists{/gist_id}","starred_url":"https://api.github.com/users/harryprince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harryprince/subscriptions","organizations_url":"https://api.github.com/users/harryprince/orgs","repos_url":"https://api.github.com/users/harryprince/repos","events_url":"https://api.github.com/users/harryprince/events{/privacy}","received_events_url":"https://api.github.com/users/harryprince/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-04T14:07:05Z","updated_at":"2016-07-08T18:39:22Z","closed_at":null,"body":"I am trying to load my customize javascript code in 10+ way, but I fail to do that.\r\nHere is what I was trying:\r\n\\```{r}\r\nHTML(\"<script src=\\\"init.js\\\"></script>\")\r\nsource(\"init.R\") # init.R including some script to load js\r\nincludeScript('init.js')\r\n\\```\r\n\r\nor adding dependencies option in yaml,like this:\r\n\r\ndependencies:\r\n    script:\r\n        - init.js\r\n\r\nor writing HTML(\"<script src=\\\"init.js\\\"></script>\") directly out of R block.\r\n\r\nabove all, I couldn't insert my js, I found the problem is flexdashboard convert all this thing into some secret code when I check out the source file by chrome."},"comment":{"url":"https://api.github.com/repos/rstudio/flexdashboard/issues/comments/231439673","html_url":"https://github.com/rstudio/flexdashboard/issues/48#issuecomment-231439673","issue_url":"https://api.github.com/repos/rstudio/flexdashboard/issues/48","id":231439673,"user":{"login":"jpf5046","id":12235005,"avatar_url":"https://avatars.githubusercontent.com/u/12235005?v=3","gravatar_id":"","url":"https://api.github.com/users/jpf5046","html_url":"https://github.com/jpf5046","followers_url":"https://api.github.com/users/jpf5046/followers","following_url":"https://api.github.com/users/jpf5046/following{/other_user}","gists_url":"https://api.github.com/users/jpf5046/gists{/gist_id}","starred_url":"https://api.github.com/users/jpf5046/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpf5046/subscriptions","organizations_url":"https://api.github.com/users/jpf5046/orgs","repos_url":"https://api.github.com/users/jpf5046/repos","events_url":"https://api.github.com/users/jpf5046/events{/privacy}","received_events_url":"https://api.github.com/users/jpf5046/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T18:39:22Z","updated_at":"2016-07-08T18:39:22Z","body":"Rand into a similar issue when trying to deploy google analytics script.\r\n\r\nWas trying to run:\r\n\r\n`tags$head(includeScript(\"Data\\\\google-analytics.js\"))`\r\n\r\nwith 'google-analytics.js' being a file that provides the standard google tracker script given by google analytics. \r\n\r\nRmarkdown would Knit, but did not show up in the source code in the browser. "}}
{"actor":{"display_login":"jpf5046"}}