getArgFromCall: Accessor Functions

getArgFromCallR Documentation

Accessor Functions

Description

These are higher-level accessor functions for working with language objects and meta-programming so that we can talk about high-level operations and concepts and not the specific representation of R language objects.

Usage

getArgFromCall(call, arg, asCharacter = TRUE)
isFunAssign(x, toSymbol = TRUE) 
pkgSymbolsUsed(pkg, fromPkg, ns = getNamespace(pkg), exportedOnly = TRUE) 

Arguments

call,x

the R call language object

arg

the name of the argument to extract from the call

asCharacter

a logical value controlling whether to deparse the result or leave it is a language object

pkg

the name of the package which is calling functions from another package

fromPkg

the name of the other package whose functions are being called

ns

the namespace's environment

exportedOnly

a logical value. If TRUE, only the exported symbols are considered, otherwise all the symbols in the namespace are processed.

toSymbol

a logical value that if TRUE causes isFunAssign not look at the value of the symbol to which the value is being assigned.

Value

a character vector/string or a language object.

Author(s)

Duncan Temple Lang


duncantl/CodeAnalysis documentation built on Feb. 21, 2024, 10:49 p.m.