ls_: List package files

Description Usage Arguments Value See Also Examples

Description

List package files

Usage

1
ls_(pkg, path = "/")

Arguments

pkg

the name (and optionally the version) of an npm package. (e.g. 'jquery', 'jquery@3.0.0')

path

character string with a path pointing to a package folder. This is used as the :file part of https://unpkg.com/:package@:version/:file

Value

a htmltools::htmlDependency object

See Also

download_files

Examples

1
2
3
ls_("jquery")
ls_("jquery", "dist")
ls_("jquery@3.2.1", "external/sizzle")

cpsievert/runpkg documentation built on May 4, 2019, 1:08 p.m.