Skip to contents

Initializes Wikipedia Preview for use in the document

Usage

wp_init(
  lang = "en",
  use_unpkg = FALSE,
  with_styles = TRUE,
  use_alt_style = FALSE
)

Arguments

lang

Language code

use_unpkg

Whether to link to the JS file on unpkg rather than embedding the JS code in the document

with_styles

Initialize with package-provided CSS styles

use_alt_style

Use an alternative built-in style