File: is.memoised.Rd

package info (click to toggle)
r-cran-memoise 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 208 kB
  • sloc: sh: 10; makefile: 5
file content (27 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (2)
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}}
}