Skip to contents

Reads a LOCAL html file's head and body for the tool-specific fingerprints documented in this file's header, and reports which (if any) rendering tool produced it. Deliberately conservative: an unrecognised .html (a task template, a docs site, a plain webpage) returns NA, never a guess.

Usage

.html_sniff_kind(path)

Arguments

path

path to a local .html file

Value

a length-1 character: "rmd" (R Markdown/Quarto via pandoc), "stata" (a Stata log rendered/translated to HTML — provisional, see file header), or NA_character_ when neither fingerprint is found (or the file cannot be read).