copycats_trap: Help catch copycats

Description Usage Arguments Value Examples

View source: R/copycats.R

Description

Takes a vector of .R files which includes solutions to homework and adds 7 trailing spaces to each even line in the file. This way, if the next semester you get homework which includes such a line, it is clear that the student copied these homework from a solution another student gave him from a previous year.

Usage

1
2
3

Arguments

file

an .R file to update.

...

not used

show_print

logical (TRUE) if to print the rows with the suspected extra spaces.

Value

invisible TRUE. Also modifies the .R file that was in the input.

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

talgalili/homework documentation built on July 10, 2019, 1:41 p.m.