Learn R Programming

dse (version 2009.7-1)

DSEflags: Flags to Indicate Use of Compiled Code

Description

Determines if compiled code should be used or not.

Usage

.DSEflags(new)

Arguments

new
A list which must have elements COMPILED and DUP.

Side Effects

The flag settings affect whether and how compiled fortran or C code is called.

concept

DSE

Details

Setting flags with this function is primarily for debugging. It should not normally be needed by users. If called with not arguments, .DSEflags() returns the current setting. Several dse functions which call compiled fortran or C code will use the equivalent S/R version if the .DSEflags()$COMPILED returns FALSE. .DSEflags()$DUP is passed to fortran calls and controls whether R duplicates arguments passed to the fortran code. The safe setting is TRUE. Setting FALSE saves some memory but does not seem to give much speed gain.

Examples

Run this code
.DSEflags(list(COMPILED=TRUE, DUP=TRUE))
    .DSEflags()$COMPILED

Run the code above in your browser using DataLab