1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/memoise.R
\name{is.memoised}
\alias{is.memoised}
\alias{is.memoized}
\title{Test whether a function is a memoised copy.
Memoised copies of functions carry an attribute
\code{memoised = TRUE}, which is what \code{is.memoised()} tests for.}
\usage{
is.memoised(f)
}
\arguments{
\item{f}{Function to test.}
}
\description{
Test whether a function is a memoised copy.
Memoised copies of functions carry an attribute
\code{memoised = TRUE}, which is what \code{is.memoised()} tests for.
}
\examples{
mem_lm <- memoise(lm)
is.memoised(lm) # FALSE
is.memoised(mem_lm) # TRUE
}
\seealso{
\code{\link{memoise}}, \code{\link{forget}}
}
|