html_dependency_vue3 | R Documentation |
Dependencies for 'Vue3'
html_dependency_vue3(offline = TRUE, minified = TRUE)
offline |
|
minified |
|
htmlDependency
Other dependencies:
html_dependency_vue()
if(interactive()){
library(vueR)
library(htmltools)
browsable(
tagList(
tags$div(id="app","{{message}}"),
tags$script(
"
var app = {
data: function() {
return {
message: 'Hello Vue!'
}
}
};
Vue.createApp(app).mount('#app');
"
),
html_dependency_vue3()
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.