| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/manifest-convert.R |
| 3 |
\name{renv_lockfile_from_manifest} |
| 4 |
\alias{renv_lockfile_from_manifest} |
| 5 |
\title{Generate \code{renv.lock} from an Posit Connect \code{manifest.json}} |
| 6 |
\usage{ |
| 7 |
renv_lockfile_from_manifest( |
| 8 |
manifest = "manifest.json", |
| 9 |
lockfile = NA, |
| 10 |
project = NULL |
| 11 |
) |
| 12 |
} |
| 13 |
\arguments{ |
| 14 |
\item{manifest}{The path to a \code{manifest.json} file.} |
| 15 |
|
| 16 |
\item{lockfile}{The path to the lockfile to be generated and / or updated. |
| 17 |
When \code{NA} (the default), the generated lockfile is returned as an \R |
| 18 |
object; otherwise, the lockfile will be written to the path specified by |
| 19 |
\code{lockfile}.} |
| 20 |
} |
| 21 |
\value{ |
| 22 |
An renv lockfile. |
| 23 |
} |
| 24 |
\description{ |
| 25 |
Use \code{renv_lockfile_from_manifest()} to convert a \code{manifest.json} file from |
| 26 |
an Posit Connect content bundle into an \code{renv.lock} lockfile. |
| 27 |
|
| 28 |
This function can be useful when you need to recreate the package environment |
| 29 |
of a piece of content that is deployed to Posit Connect. The content bundle |
| 30 |
contains a \code{manifest.json} file that is used to recreate the package |
| 31 |
environment. This function will let you convert that manifest file to an |
| 32 |
\code{renv.lock} file. Run \code{renv::restore()} after you've converted the file to |
| 33 |
restore the package environment. |
| 34 |
} |
| 35 |
\keyword{internal} |