Dependencies for Vue

html_dependency_vue(offline = TRUE, minified = TRUE)

Arguments

offline

logical to use local file dependencies. If FALSE, then the dependencies use cdn as its src.

minified

logical to use minified (production) version. Use minified = FALSE for debugging or working with Vue devtools.

Value

htmlDependency

Examples

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() ) }