Adding documentation for checking if students put in the correct arguments for functions.
This is to check to see if any of the arguments in the function contains "cars"
c("responese you want to put in" != "cars" %in% all.vars(.code))
To check for the location for the arguments i.e. the function contains multiple arguments, you might want to use [] to locate the functions.
str(<<cars>>)???p <- .code[[1]][[2]][[2]]
Feature Description
This is to check to see if any of the arguments in the function contains "cars"
c("responese you want to put in" != "cars" %in% all.vars(.code))
To check for the location for the arguments i.e. the function contains multiple arguments, you might want to use [] to locate the functions.
str(<<cars>>)
???
p <- .code[[1]][[2]][[2]]
Originally posted by @DanyangDai in https://github.com/learnr-academy/quarto-forms-teachr/issues/1#issuecomment-2136486448