isParameter = isArgument =
function(p, fun)
{
if(is.name(p))
p = as.character(p)
p %in% names(formals(fun))
}
isLocalVar = isLocalVariable =
function(p, fun, notParam = TRUE)
{
asgn = findAssignsTo(fun, p)
if(length(asgn) == 0)
return(FALSE)
if(notParam && isParameter(p, fun))
return(FALSE)
return(length(asgn) > 0)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.