[R] Self-developed package -- installation

Duncan Murdoch murdoch.duncan at gmail.com
Thu May 2 19:30:41 CEST 2013


On 02/05/2013 12:54 PM, Hui Du wrote:
> Hi All,
>
> I have a question about package installation in R. We have developed a package, say 'ABC'. We have installed it in two machines, A and B by running 'Install Package(s) from local zip file'. Everything was fine. Right now, suppose that package got damaged in machine A and our zipped file is gone, My question is that may I directly copy ../library/ABC from machine B to machine A rather than running 'Install Package(s) from local zip file' (I don't have that zip file anymore)?

If the R versions are the same, this should work.  If the versions are 
different, it may not be.  This means that you'll be in trouble if you 
ever decide to upgrade R, even if you're not in trouble now. Remember 
the two laws of computing:

1. Back it up.
2. Do it now.

(From Fred Davidson's book.)

Duncan Murdoch



More information about the R-help mailing list