Description Usage Arguments Details Records Examples
Use record()
to record a new entry within an existing renv
lockfile.
1 |
records |
A list of named records, mapping package names to a definition of their source. See Records for more details. |
lockfile |
The path to a lockfile. By default, the project lockfile is used. |
project |
The project directory. If |
This function can be useful when you need to change one or more of the
package records within an renv
lockfile – for example, because a recorded
package cannot be restored in a particular environment, and you know of a
suitable alternative.
Records can be provided either using the remotes short-hand syntax,
or by using an R list of entries to record within the lockfile. See
?lockfiles
for more information on the structure of a package record.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# use digest 0.6.22 from package repositories -- different ways
# of specifying the remote. use whichever is most natural
renv::record("digest@0.6.22")
renv::record(list(digest = "0.6.22"))
renv::record(list(digest = "digest@0.6.22"))
# alternatively, provide a full record as a list
digest_record <- list(
Package = "digest",
Version = "0.6.22",
Source = "Repository",
Repository = "CRAN"
)
renv::record(list(digest = digest_record))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.