checkObject: Check for existence of object(s) referenced by a 'objects'...

Description Usage Arguments Value Author(s) See Also

Description

Check that a named object exists in the provide simList environment slot, and optionally has desired attributes.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
checkObject(sim, name, object, layer, ...)

## S4 method for signature 'simList,missing,Raster,character'
checkObject(sim, name, object, layer, ...)

## S4 method for signature 'simList,missing,ANY,missing'
checkObject(sim, name, object, layer, ...)

## S4 method for signature 'simList,character,missing,missing'
checkObject(sim, name, object, layer, ...)

## S4 method for signature 'simList,character,missing,character'
checkObject(sim, name, object, layer, ...)

## S4 method for signature 'missing,ANY,missing,ANY'
checkObject(sim, name, object, layer, ...)

Arguments

sim

A simList object.

name

A character string specifying the name of an object to be checked.

object

An object. This is mostly used internally, or with layer, because it will fail if the object does not exist.

layer

Character string, specifying a layer name in a Raster, if the name is a Raster* object.

...

Additional arguments. Not implemented.

Value

Invisibly return TRUE indicating object exists; FALSE if not.

Author(s)

Alex Chubaty and Eliot McIntire

See Also

library.


SpaDES.core documentation built on Sept. 30, 2021, 5:10 p.m.