as_url: Turn PTT board name to URL

Description Usage Arguments Examples

View source: R/ptt-handy.R

Description

A wrapper of paste0 to turn board names or partial post URLs removed back to the original URLs.

Usage

1
as_url(x, pre = "https://www.ptt.cc/bbs/")

Arguments

x

Character. A board name or a partial URL (ending in .html) with base URL removed.

pre

Character. A base URL. Defaults to the URL of PTT Web.

Examples

1
2
as_url("gossiping")
as_url("Gossiping/M.1534490816.A.A3A.html")

liao961120/pttR documentation built on Dec. 16, 2019, 2:19 a.m.