Skip to content
Prev 294160 / 398503 Next

Modifying R package code

On 12-05-10 7:38 AM, Brian Smith wrote:
You don't want -l in that statement.  It says where to install it, not 
what to install.

Simply using

R CMD INSTALL /path to modified package/

should be sufficient, assuming you have write permission on the default 
library.  If you don't, then you do need to use -l, but it needs to 
specify some other location in which to install your package, and after 
you start R, you need to tell it (using .libPaths()) to look there 
before looking in the standard place.

One other small bit of advice:  record the fact that you made a change 
in the Version field in the DESCRIPTION file.  Later, when you are 
tracking down bugs, it will be useful to remind you that nobody else can 
duplicate your problems.

Duncan Murdoch