Skip to content

Load packages from source

2 messages · David Cassany, Duncan Murdoch

#
On 17/02/2012 7:01 AM, David Cassany wrote:
You can tell R to keep debugging information when it installs a package 
by setting the environment variable

R_KEEP_PKG_SOURCE=yes

or by a command line option to R CMD INSTALL (see the help via --help).  
It still won't be "the same code file" because it never is: but it will 
have references to it, and include formatting and comments.
As far as I know there's nothing intermediate between sourceDirectory 
and installing a package, other than setting options when installing 
that can skip parts of the operation.

Duncan Murdoch