include_js_files: Include 'JS' files from /inst/js/ package directory to...

View source: R/utils.R

include_js_filesR Documentation

Include JS files from ⁠/inst/js/⁠ package directory to application header

Description

system.file should not be used to access files in other packages, it does not work with devtools. Therefore, we redefine this method in each package as needed. Thus, we do not export this method.

Usage

include_js_files(pattern)

Arguments

pattern

(character) pattern of files to be included, passed to system.file

Value

HTML code that includes JS files


teal.slice documentation built on May 29, 2024, 1:39 a.m.