Skip to content
Prev 351432 / 398502 Next

puzzling behaviour of identical function

On 30/05/2015 10:35 AM, Munawar Cheema wrote:
sys.source has keep.source = getOption("keep.source.pkgs"), which
defaults to FALSE.  Normal evaluation uses getOption("keep.source"),
which defaults to TRUE.

You can see the difference if you save the functions, and use str(), e.g.

f <- function(x)1
g <- function(x)1

str(f)
str(g)

Duncan Murdoch