pac_namespace | R Documentation |
CRAN package NAMESPACE file taken locally or remotely from GITHUB CRAN mirror or CRAN website.
pac_namespace( pac, version = NULL, at = NULL, local = FALSE, lib.loc = .libPaths(), repos = "https://cran.rstudio.com/" )
pac |
character a package name. |
version |
character package version, By default the is_installed version. Default: NULL |
at |
Date. Default: NULL |
local |
logical if to use local library. Default: FALSE |
lib.loc |
character vector, used optionally when local is equal TRUE. Default: |
repos |
character vector URLs of the repositories to use. Used only for the validation. Default |
list with names proper for NAMESPACE file, the same as format as returned by base::parseNamespaceFile
.
Results are cached for 30 minutes with memoise
package.
This function is mainly built under source code from base::parseNamespaceFile
.
## Not run: pacs::pac_namespace("dplyr", version = "0.8.0") pacs::pac_namespace("dplyr", at = as.Date("2019-02-01")) pacs::pac_namespace("memoise", local = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.