eng_pikchr_validate_options {pikchr}R Documentation

Validate Knitr Chunk Options for Pikchr Engine

Description

This function validates the chunk options provided to the Pikchr engine in Knitr. It checks for unsupported numeric options and converts them to logical 'TRUE' values. A warning is issued if any unsupported numeric options are detected.

Usage

eng_pikchr_validate_options(options)

Arguments

options

A list of options passed to the Pikchr engine from a Knitr code chunk. These options include directives such as 'eval', 'echo', and 'warning'.

Details

The 'eng_pikchr_validate_options' function looks for specific options (e.g., 'eval', 'echo', 'warning') that should not be numeric. If any of these options are numeric, they are converted to logical 'TRUE' and a warning is issued to the user.

Value

The validated options list, where unsupported numeric values are converted to 'TRUE'.


[Package pikchr version 1.0.1 Index]