can_source: Check that .R file can be sourced without errors

Description Usage Arguments Value Examples

View source: R/test_students.R

Description

The function gets a vector of .R file names and returns for each of them if it can be sourced or not. This is helpful as an initial step before checking the homework (to make sure it can be loaded).

Usage

1

Arguments

files

a charachter vector of R file names to be sourced and checked if they can be run with no problem.

...

not used.

Value

A data.frame with the name of the file, it's status (TRUE if was sourced properly, and FALSE otherwise), and a note indicating possible issues.

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.