Skip to content

Commit

Permalink
add exmaples
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Aug 14, 2024
1 parent fee2acc commit f9409e1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions R/retrieve.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ the$repos_archive <- new.env(parent = emptyenv())
#' those packages were downloaded.
#'
#' @export
#'
#' @examples
#' \dontrun{
#'
#' # retrieve package + versions as defined in the lockfile
#' # normally used as a pre-flight step to renv::restore()
#' renv::retrieve()
#'
#' # download one or more packages locally
#' renv::retrieve("rlang", destdir = ".")
#'
#' }
retrieve <- function(packages = NULL,
...,
lockfile = NULL,
Expand Down
12 changes: 12 additions & 0 deletions man/retrieve.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f9409e1

Please sign in to comment.