updatePackage {rsyncrosim}R Documentation

Update Package

Description

Updates a SyncroSim package.

Usage

updatePackage(name = NULL, session = NULL, listonly = FALSE)

## S4 method for signature 'ANY,character'
updatePackage(name = NULL, session = NULL, listonly = FALSE)

## S4 method for signature 'ANY,missingOrNULL'
updatePackage(name = NULL, session = NULL, listonly = FALSE)

## S4 method for signature 'ANY,Session'
updatePackage(name = NULL, session = NULL, listonly = FALSE)

Arguments

name

character string. The name of the package to update. If NULL (default), all packages will be updated

session

Session object. If NULL (default), session() is used

listonly

logical. If TRUE, available updates are listed only. Default is FALSE

Value

Invisibly returns TRUE upon success (i.e.successful update) and FALSE upon failure.

Examples

## Not run: 
# Set SyncroSim Session
mySession <- session()

# List all available updates for a package
updatePackage(name = "stsim", session = mySession, listonly = TRUE)

# Update ST-Sim package
updatePackage(name = "stsim", session = mySession, listonly = FALSE)

# Update all packages
updatePackage(session = mySession)

## End(Not run)


[Package rsyncrosim version 1.5.0 Index]