getObjects: Get all objects in the calling function as a list

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This function is houthgt to be called from another function, from which all object in the local environent are returned as a named list

Usage

1
getObjects(except)

Arguments

except

CHARACTER vector indicating objects to exclude

Value

A list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 # not run
 if (1 > 2) {
   anyfun <- function(model) {
     arg <- ls()
     EXEROOT <- 'loquesea'
     FOO     <- 1:10
     getObjects(c('arg',arg))
   }
   xx <- anyfun('model1')
 } # end not run

garciapintado/rDAF documentation built on May 25, 2019, 7:26 p.m.