is.url_only: Determines if an object is a url

Description Usage Arguments Examples

View source: R/utils.R

Description

is.url_only

Usage

1

Arguments

x

The object to test

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
u <- 'https://ais.sbarc.org/logs_delimited/2019/190202/AIS_SBARC_190202-04.txt'
> is.url_only(x = u)
[1] TRUE

raw <- xml2::read_html(u)
> is.url_only(x = raw)
[1] FALSE

> is.url_only(xml_find_all(raw,".//a[1]"))
[1] FALSE

mvisalli/shipr documentation built on Aug. 8, 2020, 8:38 p.m.