pprobe.checkinput {PortfolioProbe} | R Documentation

## Check Some Input Arguments Remain Unchanged

### Description

This is primarily an internal function and seldom of interest for direct use.

Checks to see that two lists are the same. In practice these are lists of portions of some specific arguments.

### Usage

    pprobe.checkinput(new, old, exclude = NULL, suppress.warning = FALSE)

### Arguments

`new` | a list of the newly created argument checks.
`old` | a list of the original argument checks.
`exclude` | either `NULL` or a character vector of the names of the arguments that should not be checked.
`suppress.warning` | logical value: if `TRUE`, then there is no warning issued when a difference is found.

### Value

a single logical value that is `TRUE` if there were no changes.

### Side Effects

If a change is found and `suppress.warning` is `FALSE`, then a warning message is issued.

### Details

The `checkinput` components only have a few values in them, so it is possible for values to have changed and the check not to notice.

### Revision

This help was last revised 2009 December 29.

### Examples

    opt1 <- update(opt0)
    pprobe.checkinput(opt1$checkinput, opt0$checkinput)
    # a warning is issued if prices, variance, expected.return
    # or existing have changed from the original call

[Package PortfolioProbe version 1.00 Index]