The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "Visualization of nearest neighbor distance distributions", and the latter is "4. Visualization of nearest neighbor distance distributions". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.