Skip to content
Prev 205243 / 398503 Next

update packages from local

Sorry. The original message is below. 

Uwe, do you mean if i just want to update the old package abc, i have to run "R 
INSTALL abc_0.1.1.tar.gz" in the shell? I know that will overwrite that package, 
but can I do something with the update.packages() function within R? From what 
I read in the documentation, update.packages() seems to work for local source 
file update as well. 

Anybody any advice?

Thanks





---- Original message ----
Hi all, 
I have an old package installed, say "abc". Now I made some changes to the 
source, 
and built a new version of the source code "abc_0.1.1.tar.gz". How can I update 
the 
old package to this newer version from the local tar.gz file? I was running the 
following, but it did not work. 

setwd("directory where the tar.gz file locates") 

update.packages(repos=NULL,pkgs="abc_0.1.1.tar.gz",type="source") 

The code runs, but when I load library(abc) again, it is still the old version... 
What 
did I miss here?  Thanks.
is
guide.html
Regards,
Wayne (Yanwei) Zhang