Debian Codegraph @

man/cache_engines.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/engine.R
3 \docType{data}
4 \name{cache_engines}
5 \alias{cache_engines}
6 \title{Cache engines of other languages}
7 \format{
8 An object of class \code{list} of length 7.
9 }
10 \usage{
11 cache_engines
12 }
13 \description{
14 This object controls how to load cached environments from languages other
15 than R (when the chunk option \code{engine} is not \code{'R'}). Each
16 component in this object is a function that takes the current path to the
17 chunk cache and loads it into the language environment.
18 }
19 \details{
20 The cache engine function has one argument \code{options}, a list containing
21 all chunk options. Note that \code{options$hash} is the path to the current
22 chunk cache with the chunk's hash, but without any file extension, and the
23 language engine may write a cache database to this path (with an extension).
24
25 The cache engine function should load the cache environment and should know
26 the extension appropriate for the language.
27 }
28 \references{
29 See \url{https://github.com/rstudio/reticulate/pull/167} for an
30 implementation of a cache engine for Python.
31 }
32 \keyword{datasets}