Rdocumentation
powered by
Learn R Programming
sandboxR (version 0.1)
sandbox.pretest: Checking expressions for malicious code
Description
This function tests a character vector of R commands agains a list of banned functions and
stop
s if any found.
Usage
sandbox.pretest(src, blacklist = as.character(unlist(commands.blacklist())))
Arguments
src
character vector of R commands
blacklist
character vector of function names which should be banned
Value
invisibly
TRUE
if tests passed