Learn R Programming

r4ss (version 1.15)

update_r4ss_files: Updates r4ss files to newest versions on web.

Description

Sources files containing R functions r4ss package from the google code repository. These may often be newer than those available form CRAN mirrors. It is probably wise to run this function every time you load the r4ss library.

Usage

update_r4ss_files(local = NULL, save = FALSE, revision = "newest")

Arguments

local
A local directory from which to source the files instead of getting them from the web.
save
If TRUE, then copy files from web to local directory, then source from this same local directory
revision
Either "newest" (the default), or an optional revision number of the files to source. These numbers are found within the list of changes to the r4ss code at http://code.google.com/p/r4ss/source/list. If you're using an out-of-d

Examples

Run this code
update_r4ss_files()
# getting file names from http://r4ss.googlecode.com/svn/trunk/ 
# most recent change: Today (6 hours ago) 
# 64 files found in http://r4ss.googlecode.com/svn/trunk/ 
#   sourcing IOTCmove.R
#   sourcing RebuildPlot.R
#   sourcing SSFishGraph.R
#   sourcing SS_changepars.R
#   sourcing SS_fitbiasramp.R
#   sourcing SS_makedatlist.R
#   ...
#   sourcing stackpoly.R
#   sourcing update_r4ss_files.R
# update complete.

# copy files from web to local directory and then source them
update_r4ss_files(local='c:/SS/R/r4ss_files/',save=T)

# source files from a local directory (i.e. if no network available)
update_r4ss_files(local='c:/SS/R/r4ss_files/',save=F)

# update the updater function to get the new options:
source("http://r4ss.googlecode.com/svn/trunk/update_r4ss_files.R")

# get version 523 (for latest version, no "revision" input is needed)
update_r4ss_files(revision=523)

Run the code above in your browser using DataLab