Re: [R] Local install of a contributed package under Linux (was: R-code for binormla distribution)

2005-10-03 Thread Prof Brian Ripley
On Sun, 2 Oct 2005, Jonathan Baron wrote:

 Try

 R CMD INSTALL -l lib pkgs

 The help file is in the utils package.  I'm sure this is
 documented in the manual too.

But you still need to ensure that library() can find the packages.


I think the simplest way is that we have set up by default for new R 
users:

1) Set the environment variable R_LIBS.  For a site in 
R_HOME/etc/Renviron.site, or for a user in ~/.Renviron.  For example,
include the line

R_LIBS=~/R/library

2) Ensure that this directory exists, e.g.

mkdir -p ~/R/library

(If it does not exist the setting will be ignored, so it is safe to set it 
for all users.)

3) Use install.packages() inside R.  This will by default use the first 
element in .libPaths(), which will be ~/R/library.  Suggest to users that 
they use would do best to use

install.packages(pkgs, .libPaths()[1], dependencies = TRUE)

when they want to add packages, and update.packages(.libPaths()[1]) to 
update the packages they have installed.

Note that this works for Windows users too (although using ~ is perhaps 
dependent on setting HOME:  our Windows default use the network drive P: 
instead).

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Local install of a contributed package under Linux (was: R-code for binormla distribution)

2005-10-02 Thread Spencer Graves
  There probably is a way under Linux to install a contributed package 
in your local directory.  I don't know how, but if you read the 
documentation on download.packages and install.packages, you might 
be able to do it without bothering your Info Tech department.  I know 
there is a way, and with luck someone who knows will respond to this 
email.  If you try something with download.packages and 
install.packages, and you can't make it work, please tell us what you 
try and what doesn't work.  Maybe someone who uses R on Linux will 
respond.  If not, ask your Info Tech department.

  Spencer Graves

Nabil Channouf wrote:
  Mr Graves,
  we are working with linux and it is so complicated to install any thing,
  it should be via the informaticians of the department and we have to
  make a request and wait. I will ask them to do it on monday.
  Thank you so much

Spencer Graves wrote:

   Why do you say we do not have the package that contains pmvnorm? 
 It is in library(mvtnorm), which you can get via CRAN (the Comprehensive 
 R Archive Network).  If you are using Windows or a standard Linux of 
 MacOS, install.packages('mvtnorm') should install it on your computer 
 (unless you are using a computer with special protection that makes this 
 difficult;  if you are using XEmacs, you should exit R under XEmacs and 
 run install.packages from Rgui).  Then library('mvtnorm') should 
 make it available to your R session.  If you are using some other 
 operating system, you may need to access the source, but that's 
 available via CRAN alse.
 
   If you have not tried install.packages, please do so.  If you 
 have tried install.packages and can't make it work, please describe 
 your operating system, etc., as explained in the posting guide! 
 www.R-project.org/posting-guide.html.
 
   spencer graves
 
 Nabil Channouf wrote:
   Dear  Mr. Graves,
   i'm trying to write my own function with R, because we do not have the
   package that contains pmvnorm and i need to compute the upper quadrant
   area of the bivariate standard normal, or at least to know the details
   of the function pmvnorm written in Splus or in R.
   Thanks
 
 
 Spencer Graves wrote:
 
   What are you trying to do that requires binormal probabilities 
 other than pmvnorm?

   spencer graves

 Nabil Channouf wrote:

 Dear users,
 does any one have a code (S or R) to compute the binormal 
 distribution (or the upper its quadrant area) other than the pmvnorm.
 Thanks



 

-- 
Spencer Graves, PhD
Senior Development Engineer
PDF Solutions, Inc.
333 West San Carlos Street Suite 700
San Jose, CA 95110, USA

[EMAIL PROTECTED]
www.pdf.com http://www.pdf.com
Tel:  408-938-4420
Fax: 408-280-7915

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Local install of a contributed package under Linux (was: R-code for binormla distribution)

2005-10-02 Thread Jonathan Baron
Try

R CMD INSTALL -l lib pkgs

The help file is in the utils package.  I'm sure this is
documented in the manual too.

Jon
-- 
Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page: http://www.sas.upenn.edu/~baron

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html