R/isPlot.R

PlotFunctionNames = c("plot", "hist", "points", "lines", "legend", "jitter", "segments")

setGeneric("makesPlot", function(x, ...)
                           standardGeneric("makesPlot"))

setMethod("makesPlot", "ScriptNodeInfo",
            function(x, ...)
                any(PlotFunctionNames %in% x@functions))

Try the CodeDepends package in your browser

Any scripts or data that you put into this service are public.

CodeDepends documentation built on May 29, 2024, 11:51 a.m.