Learn R Programming

sirt (version 1.14-0)

CallSwitch: Switching between Calls of R Function and Rcpp Function

Description

Allows switching between calls of R functions and Rcpp (or C) functions within a package.

Usage

CallSwitch(.NAME, ..., PACKAGE = "R")

Arguments

.NAME
Name of the function
...
Function arguments
PACKAGE
Name of the package. Can be "R" for R functions and (e.g.) )"sirt" for the sirt package.

See Also

base::do.call, base::.Call

Examples

Run this code
## Not run: 
# ## The function is currently defined as	
# function (.NAME, ..., PACKAGE = "R") 
# {
#     if (PACKAGE == "R") {
#         args1 <- base::list(...)
#         base::do.call(.NAME, args1)
#     }
#     else {
#         base::.Call(.NAME, ..., PACKAGE = PACKAGE)
#     }
#   }
# ## End(Not run)

Run the code above in your browser using DataLab