You are here:
Vanderbilt Biostatistics Wiki
>
Main Web
>
Seminars
>
LinuxWorkshops
>
EmailLocalRWorkShop
(23 May 2006,
JeremyStephens
)
(raw view)
E
dit
A
ttach
---+++ !!E-mail Tips and Installing R Packages Locally ---++++ !!Wednesday, May 24th, 2006, 1:30 P.M., Conference room MRBIII 1220 %TOC% ---++ Using the Thunderbird email client with the Vanderbilt Medical Center's Exchange Server email server The Biostatistics IT group recommends Thunderbird as our standard email client for accessing the VUMC Microsoft Exchange email servers. Thunderbird is a great email client program and it runs well on both Linux and Windows. However, those of us who are running both Thunderbird and the Outlook Web Access client may need a little orientation to understand the interaction between these clients. In this session, we will explain some of the Thunderbird behavior having to do with deleting messages, using folders to organize emails, and VUMCs automatic archiving procedures. See the [[Main.ThunderbirdExchange][notes here]]. ---++ Installing R Packages Locally If you want to install your own R packages but you don't have superuser access to the computer you're working on (such as your workstation or statcomp), you can have R install them into your home directory (or any other directory you have write access to). First create a directory where you want R to install packages, such as =.R-library=. <div style="background-color: #efefef; margin-left: 25px"> <verbatim> cd ~ mkdir .R-library </verbatim> </div> Next, you need to edit your =~/.bashrc= file so that it sets the =R_LIBS= environment variable. This variable is what tells R where you want packages installed. Add the following line to the end of =~/.bashrc=: <div style="background-color: #efefef; margin-left: 25px"> <verbatim> export R_LIBS=~/.R-library </verbatim> </div> Whenever you edit your =.bashrc= file, you need to either close and re-open your console or re-source =.bashrc= by running =source ~/.bashrc= in order for the changes to apply. You only need to do this whenever you make changes; every time after that your console will be set up correctly. Go ahead and reload your settings now. Now that you've got your =R_LIBS= environment variable set, R will always install packages into the =.R-library= directory, which lives in your home directory. You can test this by looking at the return value of the *.libPaths* function in R. If the _.R-library_ directory is in the character vector returned by =.libPaths()=, then you've successfully set up R to install packages locally! This works with both the =install.packages()= function and by running =R CMD INSTALL=. For more information about installing add on packages, check out the *Add-on packages* section of the [[http://debian.mc.vanderbilt.edu/R/CRAN/doc/manuals/R-admin.html][R Installation and Administration Manual]].
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r3 - 23 May 2006,
JeremyStephens
Main
Department Home Page
Biostatistics Graduate Program
Vanderbilt University Medical Center
Main Web
Main Web Home
Search
Recent Changes
Changes
Topic list
Biostatistics Webs
Archive
Main
Sandbox
System
Register
|
Log In
Copyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki?
Send feedback