question: Add a question to the slide

View source: R/question.R

questionR Documentation

Add a question to the slide

Description

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

Usage

question(
  question,
  allow_anonymous = TRUE,
  allow_multiple = TRUE,
  max_chars = 160,
  width = "100%",
  height = "500px"
)

Arguments

question

A character -string- representing the question.

allow_anonymous

A logical indicating if audience can ask questions as an anonymous user.

allow_multiple

A logical indicating if audience can ask more than one question.

max_chars

A numeric indicating max characters allowed per question. The minimum value will be 1.

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 questions asked.


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