everdark / jquerylib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Travis build status CRAN status

jquerylib

Obtain ‘jQuery’ as an HTML dependency object

Installation

jquerylib isn’t yet available from CRAN, but you can install it with:

remotes::install_github("rstudio/jquerylib")

Usage

The jquerylib package currently has one function,jquery_core(), which returns a htmltools::htmlDependency() object that bundles a stable version of jQuery Core. Here we use it to obtain jQuery 3.x, but currently 2.x and 1.x are also supported. You likely won’t need to use this package directly, but packages like shiny and rmarkdown will eventually use this package to avoid bundling redundant copies jQuery.

jquerylib::jquery_core(3)
## List of 10
##  $ name      : chr "jquery"
##  $ version   : chr "3.5.0"
##  $ src       :List of 2
##   ..$ href: chr "https://code.jquery.com"
##   ..$ file: chr "lib"
##  $ meta      : NULL
##  $ script    : chr "jquery-3.5.0.js"
##  $ stylesheet: NULL
##  $ head      : NULL
##  $ attachment: NULL
##  $ package   : chr "jquerylib"
##  $ all_files : logi TRUE
##  - attr(*, "class")= chr "html_dependency"

About

License:Other


Languages

Language:R 100.0%