createKey: Create an Answer Key

Description Usage Arguments Value See Also Examples

Description

Create an Answer Key

Usage

1
createKey(key_name = "homework", vars = ls(name = ".GlobalEnv"))

Arguments

key_name

Full path to the assignment name. ("_KEY.Rdata" will be appended)

vars

Names of the variables where answers are stored. (default = all variables in current workspace)

Value

An .Rdata file containing the list 'answers' with solutions.

See Also

grade

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
x <- 9
y <- 1:10
z <- rep(0,5)

# Save all variables as 'test_KEY.Rdata'
createKey("test")

# Save only x & y as 'test_KEY.Rdata'
createKey("test", vars = c("x", "y"))

## End(Not run)

anthonypileggi/gradeR documentation built on May 10, 2019, 12:17 p.m.