R/list_pran.R

Defines functions list_pran

Documented in list_pran

#' PRAN packages and files
#'
#' List packages and files on PRAN
#'
#' @param .files List files on PRAN? (Default: \verb{FALSE})
#'
#' @export
#'
#' @examples
#'
#' \dontrun{
#' list_pran()
#' list_pran(TRUE)
#' }
list_pran <- function(.files = FALSE) {
  if (.files) {
    list.files(pran_up(), recursive = TRUE, full.names = FALSE)
  } else {
    miniCRAN::pkgAvail(repos = pran_up(), type = "source")
  }
}
trekonom/devpran documentation built on Nov. 26, 2019, 12:16 a.m.