get_preview: Extract the url of the preview

get_previewR Documentation

Extract the url of the preview

Description

It returns a character vector of urls to preview the data records.

Usage

get_preview(x)

## S4 method for signature 'records'
get_preview(x)

## S4 method for signature 'records'
get_download(x)

Arguments

x

a records object.

Value

preview url of a records

Examples

## Not run: 
# load example rtoi
file.copy(from=system.file("ex/Navarre",package="rsat"),
         to=tempdir(),
         recursive = TRUE)

navarre <- read_rtoi(file.path(tempdir(),"Navarre"))

# get the records
rcds <- records(navarre)

# get a vector with the preview url of each record
get_api_name(rcds)

## End(Not run)

rsat documentation built on March 18, 2022, 5:40 p.m.