DM.calledFunctions: Get the functions a student called

Description Usage Arguments Value Examples

View source: R/DM.calledFunctions.R

Description

Function takes DM.user.code as input, then checks sequentially what functions were called by the student and returns a vector with the character names of those functions.

Usage

1
DM.calledFunctions(user.code=DM.user.code)

Arguments

user.code

Character text you want to investigate.

Value

A character vector with the function names called by the student, in the order they appeared in the user.code

Examples

1
2
3
4
5
6
7
8
DM.user.code <- ' #Some random user code
x <- 1:10
mean(x,y=blablaY,z=blablaZ);sum(x)
sapply(x,FUN=sum)
mean(x2=2,y2=3)
'
# Try it out:
DM.calledFunctions()

jonathancornelissen/DM documentation built on May 19, 2019, 7:27 p.m.