jshintr {jshintr}R Documentation

Lint a Javascript file

Description

HTML widget which runs 'jshint' on the given JavaScript file.

Usage

jshintr(filepath, width = NULL, height = "auto", elementId = NULL)

Arguments

filepath

path to a JavaScript file

width, height

dimensions (CSS properties)

elementId

a HTML id for the widget (usually useless)

Value

A htmlwidget object.

Note

You can also run this widget as a RStudio addin.

Examples

jsfile <- system.file("jsexample.js", package = "jshintr")
cat(readLines(jsfile), sep = "\n")
jshintr(jsfile)

[Package jshintr version 0.1.0 Index]