run_js_files: Run 'JS' file from /inst/js/ package directory

View source: R/include_css_js.R

run_js_filesR Documentation

Run JS file from ⁠/inst/js/⁠ package directory

Description

This is triggered from the server to execute on the client rather than triggered directly on the client. Unlike include_js_files which includes JavaScript functions, the run_js actually executes JavaScript functions.

Usage

run_js_files(files)

Arguments

files

(character) vector of filenames.

Details

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.

Value

returns NULL, invisibly.


teal documentation built on May 29, 2024, 10:11 a.m.