Skip to content

Commit

Permalink
Added data() and system() to list of forbidden functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscpe436 committed Jan 8, 2016
1 parent a0f1314 commit 3922b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/mark_my_assignment.R
Expand Up @@ -252,7 +252,7 @@ delete_circular_calls <- function(mark_file){
forbidden <- c(
"mark_my_assignment", "mark_my_dir", "set_assignment", "mark_my_file",
"install.packages", "utils::install.packages",
"devtools::install_github", "install_github")
"devtools::install_github", "install_github", "data", "system")
regex <- paste("(^|;| )", forbidden, "\\(.*\\)", sep = "")
for(pattern in regex){
txt <- gsub(pattern = pattern, replacement = "", x = txt)
Expand Down

0 comments on commit 3922b78

Please sign in to comment.