Description Usage Arguments Value Examples
View source: R/DM.checkExistence.R
Functions takes character vector as an input and checks whether these variables are defined in the students workspace.
1 | DM.checkExistence(variables = NULL)
|
variables |
Character vector |
It doesn't return anything in case all variables indeed exist in the students workspace, but it returns a list with FALSE as first element and a message as second element in case at least one variable doesn't exist.
1 2 3 4 | existing1 <- 1
existing2 <- 2
DM.checkExistence( c("existing1","existing2") ) # Doesn't return anything
DM.checkExistence( "this.variable.doesnt.exist" ) # Returns a useful message for student
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.