Learn R Programming

SpaDES (version 1.2.0)

.parseArgs: Parse arguments and find environments

Description

Internal function used within objectNames.

Usage

.parseArgs(y, e, eminus1)

Arguments

y
A character representation of the arguments passed to a function, e.g., Plot.
e
Environment in which the function (e.g., Plot) was called.
eminus1
Environment. The parent of e.

Value

A list of length 2, with names objs and envs giving the standardized representation (i.e., replacing [[]] with $ notation for objects) of objects and their layers (if RasterStacks).