Skip to contents

Scrape packaging sites

Usage

scrape_pkg_sites(
  sites = get_pkgs_to_scrape(local = TRUE),
  service = "local",
  index_create = TRUE,
  overwrite = TRUE
)

Arguments

sites

A data frame containing the package sites to be scraped. If not provided, it defaults to get_pkgs_to_scrape(local = TRUE).

service

The service to be used for scraping, defaults to "local".

index_create

Logical indicating whether to create an index, defaults to TRUE.

overwrite

Logical indicating whether to overwrite existing content, defaults to TRUE.

Value

Invisible NULL. The function is called for its side effects.

Details

This function scrapes the websites for the packages specified in the sites dataframe. If sites is empty, it alerts the user with no packages to scrape and returns NULL invisibly. If the user confirms to proceed, it scrapes each package site using the supplied details.

Examples

if (FALSE) { # rlang::is_interactive()
scrape_pkg_sites()
}