html_dependency_vue | R Documentation |
Dependencies for Vue
html_dependency_vue(offline = TRUE, minified = TRUE)
offline |
|
minified |
|
htmlDependency
Other dependencies:
html_dependency_vue3()
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.