apply_vue: Apply Vue

View source: R/vue.R

apply_vueR Documentation

Apply Vue

Description

Apply Vue to a project, adds the relevant (babel) loader, installs dependencies, and creates, or updates, or replaces the srcjs/index.js file.

Usage

apply_vue(use_cdn = TRUE)

Arguments

use_cdn

Whether to use the CDN for vue (recommended). This means later importing the dependencies in the shiny UI using vueCDN(), this function will be created in a R/vue_cdn.R. The correct instructions are printed to the console by the application.

Details

After running this function and bundling the JavaScript remember to place div(id = "app"), tags$script(src = "www/index.js") at the bottom of your shiny UI.


packer documentation built on May 28, 2022, 5:06 p.m.