examplify_to_r: Convert from Examplify to R

Description Usage Arguments Details Value

View source: R/examplify_to_r.R

Description

This function converts an Examplify script (from a student,html) into an R script.

Usage

1
examplify_to_r(in_fname, out_fname, verbose = FALSE)

Arguments

in_fname

A file name of a student submission html file.

out_fname

The output R script.

verbose

Controls verbosity of output.

Details

The script has to be exported in html format, using a particular profile. The questions are stored in tags nested under id = "answers" and tag type "h2". The answers are stored in tags nested under id = "answers" and class "content".

Some of the student text may contain R code and text mixed up, so tidy_source() may not work on those, since it is parsed.

Value

This will return NULL, but will generate an R script as output.


autoharp documentation built on Nov. 13, 2021, 1:06 a.m.