Description Usage Arguments Value Examples
add_prompts
- Adds the ID enriched prompt .rds file directly to the project directory.
1 | add_prompts(projects.path, prompts, ...)
|
prompts |
A vector of promts to show the person that will be judged. |
project.path |
A path the the projects directory. |
path |
Path of where to put the .rds file. |
... |
ignored. |
Returns the project.path
so it can be used with
make_project
and add_responses
within a magrittr chain.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | temp <- tempdir()
prompts <- c("I am sam", "He is greg", "We are us.")
write_prompts(prompts = prompts, path = file.path(temp, "prompts.rds"))
readRDS(file.path(temp, "prompts.rds"))
## Not run:
## In a magrittr pipeline
library(dplyr)
prompts <- c("I am sam", "He is greg", "We are us.")
responses <- c("Orange", "Yellow", "Green", "Blue", "Red", "Purple")
make_project(
path = "L:/swiper/shinyTurk/turk_items/ce_question_tagging_validation",
key.value = 9999
) %>%
add_prompts(prompts) %>%
add_responses(
responses = responses,
googleform_url = 'https://docs.google.com/forms/d/1iLiHtE6xFUzYMN8iB3AXD5xRYVY_oI5Cps1uaujZGng',
type = "checkbox"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.