From mick.jordan at oracle.com  Mon Jul 21 17:07:25 2014
From: mick.jordan at oracle.com (Mick Jordan)
Date: Mon, 21 Jul 2014 08:07:25 -0700
Subject: [Rd] Question on Code snippet semantics
Message-ID: <53CD2CAD.6010503@oracle.com>

I came across this code in library.R

package <- as.character(substitute(package))

where package is the first argument to the "library" function.

I've been racking my brains to understand why this is not just an 
elaborate (and ineffcient) way to write:

package <- "package"

E.g.

 > package <- as.character(substitute(package))
 > package
[1] "package"
 >

Thanks
Mick Jordan



[Rd] Question on Code snippet semantics
Mick Jordan