Skip to contents

Checks that a given input corresponds to the format expected of a download data frame, consistently returns expected format

Usage

cas_get_urls_df(urls = NULL, index = FALSE, index_group = NULL, ...)

Arguments

url

A character vector or a data frame with at least two columns, id and url

Value

Consistently returns a data frame with at least two columns: a numeric id column, and a character url column.

Examples


cas_get_urls_df(c(
  "https://example.com/a/",
  "https://example.com/b/"
))
#> Error in tibble::tibble(id = seq_along(urls), url = url): All columns in a tibble must be vectors.
#>  Column `url` is a function.