The rnw_opts_set function sets global R options and configures knitr options for formatting and path management, tailored for compiling .rnw files.

rnw_opts_set()

Details

This function configures:

  • Global R options for numeric formatting, console width, and significant figures.

  • knitr options including aliases for figure dimensions, chunk formatting, figure paths, caching, and figure alignment.

  • Specific paths for figures and cache, creating directories if they don't exist.

Examples

if (FALSE) { # \dontrun{
  rnw_opts_set() # Set options for knitr and global R settings
} # }