update_r4ss_files: Updates r4ss files to newest versions on web.

Description Usage Arguments Author(s) Examples

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

1
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-date version of SS, or some recent update to the code isn't working for your model, an older revision may help. Otherwise, we recommend using the newest revision.

Author(s)

Ian Taylor

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## Not run: 
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) 


## End(Not run)

r4ss documentation built on May 2, 2019, 4:56 p.m.