| Title: | JSS 'LaTeX'/'BibTeX' Style Checker |
|---|---|
| Description: | Lints 'LaTeX'/'BibTeX' manuscripts against the Journal of Statistical Software (JSS) style guide. Wraps the same 'Rust' rule engine used by the standalone 'jsslint' binary, the browser/'WASM' build, and the 'Python' binding, exposed to R via 'extendr'. |
| Authors: | Manuel Koller [aut, cre] (ORCID: <https://orcid.org/0000-0002-4159-922X>), The authors of the vendored 'Rust' crates [cph] (see inst/AUTHORS for details) |
| Maintainer: | Manuel Koller <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 1.2.0 |
| Built: | 2026-10-11 07:41:42 UTC |
| Source: | https://github.com/cran/jsslintr |
Lists the .tex, .ltx, .bib, .Rnw, and .Rmd files in a
directory – the file set jsslint() checks when called without
arguments.
jss_files(path = ".")jss_files(path = ".")
path |
Directory to search (default: the working directory). |
A character vector of file paths.
Lints the given files and applies the automatic fixes in place
(atomic write; a fix that reintroduces its own violation is rolled
back). Use dry_run = TRUE to preview the changes as a unified
diff without touching the files.
jssfix( files, rules = NULL, dry_run = FALSE, journal = NULL, mode = NULL, ignore_rules = NULL, min_confidence = NULL, verbose = NULL )jssfix( files, rules = NULL, dry_run = FALSE, journal = NULL, mode = NULL, ignore_rules = NULL, min_confidence = NULL, verbose = NULL )
files |
Character vector of file paths, or a |
rules |
Character vector of rule ids; when given, only fixes for these rules are applied. |
dry_run |
If |
journal |
Journal identifier (default: |
mode |
|
ignore_rules |
Character vector of rule ids to suppress. |
min_confidence |
|
verbose |
Enable diagnostic output on stderr. |
Invisibly, an object of class "jsslint_fixes" with data
frames applied, skipped, and rejected, plus the unified
diff (dry runs only). Printing it summarises what happened.
## Not run: jssfix(c("paper.tex", "refs.bib"), dry_run = TRUE) jssfix(c("paper.tex", "refs.bib")) ## End(Not run)## Not run: jssfix(c("paper.tex", "refs.bib"), dry_run = TRUE) jssfix(c("paper.tex", "refs.bib")) ## End(Not run)
Reads the given manuscript files and lints them against the Journal
of Statistical Software style guide. This is the main entry point
for interactive use; render() is the lower-level in-memory
binding it wraps.
jsslint( files = jss_files(), journal = NULL, mode = NULL, ignore_rules = NULL, min_confidence = NULL, verbose = NULL )jsslint( files = jss_files(), journal = NULL, mode = NULL, ignore_rules = NULL, min_confidence = NULL, verbose = NULL )
files |
Character vector of paths to |
journal |
Journal identifier (default: |
mode |
|
ignore_rules |
Character vector of rule ids to suppress. |
min_confidence |
|
verbose |
Enable diagnostic output on stderr. |
An object of class "jsslint". Print it for a quick
overview, use summary() for a by-rule and by-category
breakdown, and as.data.frame() for one row per issue. Pass it
to jssfix() to apply the automatic fixes.
## Not run: res <- jsslint(c("paper.tex", "refs.bib")) res summary(res) as.data.frame(res) jssfix(res) ## End(Not run)## Not run: res <- jsslint(c("paper.tex", "refs.bib")) res summary(res) as.data.frame(res) jssfix(res) ## End(Not run)
The distribution-to-engine-to-rule-set mapping in code (spec 027 item
D). package is this R package's version, which may carry a CRAN
resubmission suffix (1.2.0-1) that no other channel uses; tool and
engine name the compiled core it wraps; ruleset_version is the
date of the rule set whose findings — and whose baseline entries —
this build produces. docs/versions.md carries the same mapping for
every other channel.
jsslint_version()jsslint_version()
A named list with package, tool, engine,
ruleset_version, and guide_source.
jsslint_version()jsslint_version()
Mirrors jsslint::render (the PyO3 binding) / the WASM binding's
render().
render( files, journal = NULL, mode = NULL, output = NULL, ignore_rules = NULL, min_confidence = NULL, fail_on = NULL, source_root = NULL, verbose = NULL )render( files, journal = NULL, mode = NULL, output = NULL, ignore_rules = NULL, min_confidence = NULL, fail_on = NULL, source_root = NULL, verbose = NULL )
files |
A named character vector: names are file paths
( |
journal |
Journal identifier (default: |
mode |
|
output |
|
ignore_rules |
Comma-separated rule ids to suppress. |
min_confidence |
|
fail_on |
|
source_root |
Base directory for SARIF artifact URIs. |
verbose |
Enable diagnostic output on stderr. |
The rendered report, as a single string.