Description Usage Arguments Value Examples
Dependencies for Vue
1 | html_dependency_vue(offline = TRUE, minified = TRUE)
|
offline |
|
minified |
|
htmlDependency
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | if(interactive()){
library(vueR)
library(htmltools)
attachDependencies(
tagList(
tags$div(id="app","{{message}}"),
tags$script(
"
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
}
});
"
)
),
html_dependency_vue()
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.