You are here:
Vanderbilt Biostatistics Wiki
>
Main Web
>
StatComp
>
RS
>
LatestRFunctions
(20 Nov 2006,
WillGray
)
(raw view)
E
dit
A
ttach
---+ How to Obtain Updates to Individual Functions in R Packages Between Releases This page shows you how to read in source code to override functions in a package. The source code is automatically downloaded from our Subversion repository. The package whose functions you are overriding must already be attached using the =library()= command. Be sure to not save your R workspace at the end of the R session, or you will permanently override functions in future releases of the package. The approach outlined here is meant to be used every time a script is run, assuming you have a good internet connection. If you have a version of the =Hmisc= package installed that is later than version 3.1-1, you already have the =getLatestSource= function so you can skip step 2. To determine the version of =Hmisc= you have installed, type =library(help='Hmisc')= 1 In R type =library(Hmisc)= 1 Type =source('http://biostat.mc.vanderbilt.edu/tmp/getLatestSource.s')= 1 Run this command to get a list of the latest version of all available files containing functions in a package:<br> =getLatestSource(package='packagename', avail=TRUE)= <br>Omitting the package name implies you are accessing the =Hmisc= package 1 Run this command to =source()= in the 5 most recently updated functions in the =Design= package:<br> =getLatestSource(package='Design', recent=5)= 1 Run this command to update two functions in =Hmisc=:<br> =getLatestSource(c('aregImpute','cut2'))= This will not get you updates to documentation. To view the latest documentation (although in the R help file markup language) go to our [[http://biostat.mc.vanderbilt.edu/cgi-bin/viewvc.cgi Subversion repository]] or click on the following links: * [[http://biostat.mc.vanderbilt.edu/cgi-bin/viewvc.cgi/Hmisc/trunk/man Hmisc]] * [[http://biostat.mc.vanderbilt.edu/cgi-bin/viewvc.cgi/Design/trunk/man Design]] * [[http://biostat.mc.vanderbilt.edu/cgi-bin/viewvc.cgi/rreport/trunk/man rreport]]
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r4 - 20 Nov 2006,
WillGray
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