wp_init: Initialize Wikipedia Preview

View source: R/init.R

wp_initR Documentation

Initialize Wikipedia Preview

Description

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


bearloga/wikipediapreview-r documentation built on June 29, 2024, 1:37 a.m.