Skip to contents

This function gets the title of a certain webpage.

Usage

title_of(target, collapse = T)

Arguments

target

The target file you are targeting (Usually a web adress).

collapse

A logical that indicates if you want to merge titles in case of the webpage having more than one title element.

Value

Returns a character vector with the title of the targeted webpage.

The vector of titles.

Examples

target <- "https://en.wikipedia.org/wiki/R_(programming_language)"
title_of(target)
#> Time for title_of : 0.155596017837524 seconds.
#> [1] "R (programming language) - Wikipedia"