Learn R Programming

⚠️There's a newer version (0.8.9) of this package.Take me there.

markmyassignment (version 0.3.0)

Automatic Marking of R Assignments

Description

Automatic marking of R assignments for students and teachers based on testthat test suites.

Copy Link

Version

Install

install.packages('markmyassignment')

Monthly Downloads

310

Version

0.3.0

License

BSD_2_clause + file LICENSE

Maintainer

Mans Magnusson

Last Published

December 28th, 2015

Functions in markmyassignment (0.3.0)

expect_package

Expect that a given package is used
get_tests

Get test files
has_function_arguments

Function has argument test
assignment_yml_ok

Check the yml file to be a correct assignment yml.
directories

Functions to create directories
read_assignment_yml

Load assignment information
expect_function_code

Expect function contain code
assert_function_arguments_in_API

Checks the input arguments for mark_my_assignment and mark_my_file
function_code

Function contain code test
expect_self_contained

Expect that the tested function is self-contained
cached_tasks

Cached tasks
StudentReporter-class

Test reporter: Simplified summary of failures and errors.
mark_my_assignment

Mark assignment in global environment
get_mark_my_reporter

Get reporter from yml file
expect_function_arguments

Expect function arguments
use_package

Package is used test
path_type

Get the path type.
temp_folder_check_create

Check and create folder if missing.
mark_my_dir

Mark assignments in a directory
expect_tidy_code

Expect tidy format (to be constructed)
stop_if_circular_calls

Checks and stop if there are circular calls
check_existance_tasks

Check that tasks exist in assignment.
markmyassignment

Automatic Marking of R Assignments
get_file

Get the file from the path
run_test_suite

Run test suite
cheer

Cheer when all tasks pass
is_self_contained

Function is self contained test
show_tasks

Get the name of the tasks in the assignment.
set_assignment

Set assignment to mark
find_expr

Internal function (taken from testthat)
check_assignment_file

Check assignment yml file that it is a correct assignment file
mark_my_file

Mark assignment file