Learn R Programming

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

markmyassignment (version 0.5.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.5.0

License

BSD_2_clause + file LICENSE

Maintainer

Mans Magnusson

Last Published

March 20th, 2016

Functions in markmyassignment (0.5.0)

mark_my_file

Mark assignment file
expect_self_contained

Expect that the tested function is self-contained
delete_circular_calls

Checks and deletes circular calls
directories

Functions to create directories
expect_tidy_code

Expect tidy format (to be constructed)
function_code

Function contain code test
assert_function_arguments_in_API

Checks the input arguments for mark_my_assignment and mark_my_file
cheer

Cheer when all tasks pass
get_tests

Get test files
mark_my_dir

Mark assignments in a directory
path_type

Get the path type.
use_package

Package is used test
check_installed_packages

Check whether required packages are installed and loaded.
temp_folder_check_create

Check and create folder if missing.
show_tasks

Get the name of the tasks in the assignment.
find_expr

Internal function (taken from testthat)
set_assignment

Set assignment to mark
is_self_contained

Function is self contained test
StudentReporter-class

Test reporter: Simplified summary of failures and errors.
mark_my_assignment

Mark assignment in global environment
markmyassignment

Automatic Marking of R Assignments
expect_package

Expect that a given package is used
expect_function_arguments

Expect function arguments
cached_tasks

Cached tasks
expect_function_code

Expect function contain code
has_function_arguments

Function has argument test
check_assignment_file

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

Load assignment information
get_file

Get the file from the path
assignment_yml_ok

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

Run test suite
get_mark_my_reporter

Get reporter from yml file
check_existance_tasks

Check that tasks exist in assignment.