Description Usage Arguments Value Examples
The files will be named according to the package names and version numbers.
1 | pkg_download(pkgs, dest_dir = ".")
|
pkgs |
Package(s) to download. By default the latest versions are downloaded, a specific version number can be given after a dash. |
dest_dir |
Destination directory. |
A character vector containing the full paths of the downloaded packages.
1 2 3 | dest_dir <- tempdir()
pkg_download("testthat", dest_dir = dest_dir)
pkg_download("testthat-0.8.1", dest_dir = dest_dir)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.