define: Evaluate the R code into a definition

Description Usage Arguments Value Author(s) References See Also Examples

Description

This takes the R code as a string and evaluates it in the R session. The idea is that the code contains class and R function definitions and so we are "defining" them.

Usage

1
define(x, where = globalenv(), ...)

Arguments

x

a character vector or list of character vectors of R code

where

the environment in which the definition is to be assigned

...

additional parameters for methods to add

Value

This is used for its side effects of defining R objects and classes.

Author(s)

Duncan Temple Lang

References

The RGCCTranslationUnit pacakge.

See Also

genTUInterface defStructClass createRFunc

Examples

1
2
3
4
5
  tu.file = system.file("TU", "utsname", "utsname.c.001t.tu", package = "RGCCTUFFI")
  code = genTUInterface(tu.file, pattern = "utsname|uname")

      # now we can evaluate/load/define the code in this R session
  define(code)

omegahat/RGCCTUFFI documentation built on May 24, 2019, 1:53 p.m.