Audit

Read-only inspection of CRAN-blocking issues. Each function targets one category and returns a structured result.

audit_globals()

Audit globals to declare in R/globals.R

audit_tags()

Audit roxygen tags expected by CRAN

audit_ascii()

Audit non-ASCII characters in a package

audit_userspace()

Audit files left in user space by checks

audit_check()

Run R CMD check with CRAN environment

audit_dataset_doc()

Audit dataset documentation

audit_citation()

Audit inst/CITATION for old-style calls flagged by CRAN

audit_description()

Audit unquoted package names in DESCRIPTION's Description field

audit_dontrun()

Audit \dontrun{} blocks across the package's Rd files

audit_downloads()

Audit calls to known download / network functions

Fix

Apply an automated fix for the issues that can be safely rewritten. Dry-run by default where applicable.

fix_globals()

Print or write the globalVariables block to declare

fix_ascii()

Rewrite non-ASCII characters in a package

fix_dataset_doc()

Generate a roxygen skeleton for a dataset

Low-level tools

Building blocks for fine-grained scripting and tests. Most users only need the audit_* / fix_* facades above.

asciify_file()

Apply the asciify rewrite to a single R / R-related file

asciify_r_source()

Rewrite non-ASCII characters inside a string of R source code

find_nonascii_tokens()

Find non-ASCII tokens inside a piece of R source code

create_example_pkg()

Create a package example producing notes and errors

Deprecated

Historic API kept callable for backwards compatibility. Each one emits a lifecycle warning and delegates to the new facade. Prefer the audit_* / fix_* names listed above.

find_nonascii_files()

Deprecated: use audit_ascii() instead

asciify_pkg()

Deprecated: use fix_ascii() instead

get_notes()

Deprecated: internal helper used by audit_globals()

get_no_visible()

Deprecated: use audit_globals() instead

print_globals()

Deprecated: use fix_globals() instead

find_missing_tags()

Deprecated: use audit_tags() instead

check_as_cran()

Deprecated: use audit_check() instead

check_clean_userspace()

Deprecated: use audit_userspace() instead

get_data_info()

Deprecated: internal helper used by fix_dataset_doc()

use_data_doc()

Deprecated: use fix_dataset_doc() instead