get_question_details: Extract question name and score from header

Description Usage Arguments Value

View source: R/questions.R

Description

This function is inspired by the roxygen2 decoration of source files with content used to create the manual and help files. Here we expect two tags @title with the displayed title of the question, and @score with the number of available points.

Usage

1
get_question_details(dir, pattern = "^test.*\\.[rR]$")

Arguments

dir

Directory containing the test files for a question

pattern

A regular expression identifying test files in the directory

Value

A data.frame object with colums name, file, and max_points


stat447/plr documentation built on Dec. 23, 2021, 5:24 a.m.