https://github.com/cran/dse
Raw File
Tip revision: ec2cd7292be30e4d40bbb7ac3a2ede268dc7cf92 authored by Paul Gilbert on 02 May 2012, 06:27:58 UTC
version 2012.4-1
Tip revision: ec2cd72
DSEflags.Rd
\name{DSEflags}
\alias{.DSEflags}
\title{Flags to Indicate Use of Compiled Code}
\description{
    Determines if compiled code should be used or not.
    }
\usage{
    .DSEflags(new)
    }
\arguments{
    \item{new}{A list which must have elements COMPILED and DUP.}
     }
\details{
    Setting flags with this function is primarily for debugging. It should not
    normally be needed by users.  If called with not arguments, 
    \code{.DSEflags()} returns the current setting.
    Several \pkg{dse} functions which call compiled fortran or C code will use
    the equivalent S/R version if the \code{.DSEflags()$COMPILED} returns 
    \code{FALSE}.  \code{.DSEflags()$DUP} is passed to
    fortran calls and controls whether R duplicates arguments passed
    to the fortran code. The safe setting is \code{TRUE}. Setting \code{FALSE} 
    saves some memory but does not seem to give much speed gain. 
    }
\section{Side Effects}{
    The flag settings affect whether and how compiled fortran or C code is
    called. 
    }
\examples{
    .DSEflags(list(COMPILED=TRUE, DUP=TRUE))
    .DSEflags()$COMPILED
}
\concept{DSE}
\keyword{programming}


back to top