Hi All,
I have two questions regarding install.packages().
Q1: may I run it in non-interactive mode, which means just install the packages
I want rather than letting me to choose which mirror etc?
Q2: I ran a R code in batch mode, for example, R CMD BATCH a.r
In a.r, I have some statements like
packages = library()$result[, "Package"];
f(! "plyr" %in% packages)
{
install.packages("plyr");
}
I ran a.r in UNIX machine, when I logged in as a user, say 'abc', the system
found 'plyr' is not there and then tried to install it. If I logged in as
another user, say '123', the system found 'plyr' is not there and then tried to
install it. My question is to how to make sure to install 'plyr' just once
rather than depending on the 'user'.
Thanks.
HXD
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.