create_presentation {phonfieldwork} | R Documentation |
Creates a presentation
Description
Creates an html or powerpoint presentation in a working directory from list of words and translations. Here is an example of such presentation.
Usage
create_presentation(
stimuli,
translations = "",
external = NULL,
font_size = 50,
output_dir,
output_format = "html",
output_file = "stimuli_presentation",
render = TRUE
)
Arguments
stimuli |
the vector of stimuli (obligatory). Can be a path to an image. |
translations |
the vector of translations (optional) |
external |
the vector with the indices of external images |
font_size |
font size in px (50, by default) |
output_dir |
the output directory for the rendered file |
output_format |
the string that difine the R Markdown output format: "html" (by default) or "pptx" |
output_file |
the name of the result presentation file (by default stimuli_presentation) |
render |
the logical argument, if |
Value
If render
is FALSE
, the function returns a path to the
temporary file. If render
is TRUE
, there is no output in a
function.
Author(s)
George Moroz <agricolamz@gmail.com>
Examples
create_presentation(
stimuli = c("rzeka", "drzewo"),
translations = c("river", "tree"),
render = FALSE
)
# with image
create_presentation(
stimuli = c(
"rzeka", "drzewo",
system.file("extdata", "r-logo.png",
package = "phonfieldwork"
)
),
translations = c("river", "tree", ""),
external = 3,
render = FALSE
)