html_dependency_vue {vueR}R Documentation

Dependencies for Vue

Description

Dependencies for Vue

Usage

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

See Also

Other dependencies: html_dependency_vue3()

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

[Package vueR version 0.6.0 Index]