| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/libpaths.R |
| 3 |
\name{with_temp_libpaths} |
| 4 |
\alias{with_temp_libpaths} |
| 5 |
\alias{local_temp_libpaths} |
| 6 |
\title{Library paths} |
| 7 |
\usage{ |
| 8 |
with_temp_libpaths(code, action = "prefix") |
| 9 |
|
| 10 |
local_temp_libpaths(action = "prefix", .local_envir = parent.frame()) |
| 11 |
} |
| 12 |
\arguments{ |
| 13 |
\item{code}{\code{[any]}\cr Code to execute in the temporary environment} |
| 14 |
|
| 15 |
\item{action}{\verb{[character(1)]}\cr should new values \code{"replace"}, \code{"prefix"} or |
| 16 |
\code{"suffix"} existing paths.} |
| 17 |
|
| 18 |
\item{.local_envir}{\verb{[environment]}\cr The environment to use for scoping.} |
| 19 |
} |
| 20 |
\value{ |
| 21 |
\code{[any]}\cr The results of the evaluation of the \code{code} |
| 22 |
argument. |
| 23 |
} |
| 24 |
\description{ |
| 25 |
Temporarily prepend a new temporary directory to the library paths. |
| 26 |
} |
| 27 |
\seealso{ |
| 28 |
\code{\link{withr}} for examples |
| 29 |
|
| 30 |
\code{\link[=.libPaths]{.libPaths()}} |
| 31 |
|
| 32 |
Other libpaths: |
| 33 |
\code{\link{with_libpaths}()} |
| 34 |
} |
| 35 |
\concept{libpaths} |