Description Usage Arguments Value Author(s) Examples
This function aims to download all the required packages to a specified local directory.
1 2 3 4 5 | download_dep(
x,
destination_dir = "./",
server_link = "http://cran.rstudio.com/"
)
|
x |
A vector of the package names to be downloaded. |
destination_dir |
Destination directory for the packages to be downloaded. The default is the current working directory. |
server_link |
The link of the server to download the packages from. The default is the official CRAN website (http://cran.rstudio.com/). |
.tar.gz: All the R packages to be downloaded with the format of .tar.gz
Miao Cai <email: miao.cai@outlook.com>
1 2 3 4 5 6 7 8 | # download the dependencies, and all the dependencies of the dependencies, and so on of the package "cli".
package_vec = pkg_dep_all('cli')
# Depth: 1
# Depth: 2
package_vec
# [1] "cli" "glue" "utils" "methods"
download_dep(package_vec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.