add_prompts: Write a Prompt rds File for Turk

Description Usage Arguments Value Examples

Description

add_prompts - Adds the ID enriched prompt .rds file directly to the project directory.

Usage

1
add_prompts(projects.path, prompts, ...)

Arguments

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.

Value

Returns the project.path so it can be used with make_project and add_responses within a magrittr chain.

Examples

 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)

trinker/shinyTurkTools documentation built on May 31, 2019, 10:41 p.m.