UNCkeytron: Create a KEY for the scantron

View source: R/UNCkeytron.R

UNCkeytronR Documentation

Create a KEY for the scantron

Description

Create a KEY for the scantron

Usage

UNCkeytron(g, fout, LAB = "KEY")

Arguments

g

vector of correct answers

fout

output file name

LAB

Label to print on key

Details

Given a vector of correct answers the program will create a postscript file with a facsimile of the scantron used for examinations at UNC Chapel Hill. The Bubbles will be filled and can be used to prepare a number 2 pencil version.

Value

Side effects

Note

Currently only eps outputs - future versions may be different. At this time, the code creates postscript code, which can be converted to png, pdf or other formats with software outside of R. In linux I use a perlscript, ⁠ /home/lees/Progs/Perl/ps2png.prl files.eps ⁠ which, in turn, calls, epstopdf and ⁠ gs -dBATCH -sDEVICE=png16m -dNOPAUSE -r200 -sOutputFile=$outpf $inpf ⁠

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

getKEY

Examples


## Not run: 

fkeyA = "/Users/lees/SCANTRON/A.FINAL.key"
fkeyB = "/Users/lees/SCANTRON/B.FINAL.key"
 FKEY1 = getKEY(fkeyA)

    FKEY2 = getKEY(fkeyB)

UNCkeytron(FKEY1, "AKEYfinal.eps", "A KEY final")
UNCkeytron(FKEY2, "BKEYfinal.eps", "B KEY final")



## End(Not run)





ProfessR documentation built on Aug. 21, 2023, 9:07 a.m.