poll: Add a poll to the slide

View source: R/poll.R

pollR Documentation

Add a poll to the slide

Description

Adds a poll to the current slide. It will return the corresponding 'iframe' tag which will show the poll results. This function must be called once per poll.

Usage

poll(
  question,
  options,
  correct_opts = NULL,
  multiple_opts = FALSE,
  width = "100%",
  height = "500px"
)

Arguments

question

A character -string- representing the poll question.

options

A character vector with the possible poll answers.

correct_opts

A character vector with the correct poll answers. Must be a subset of 'options'.

multiple_opts

A logical indicating if multiple options can be selected.

width

A character with a valid html 'width' value for the iframe.

height

A character with a valid html 'height' value for the iframe.

Value

An html 'iframe' tag which will show the poll results.


jcrodriguez1989/interactingan documentation built on June 7, 2024, 10:57 a.m.