rpubs_code: Extract Code From RPubs Article

Description Usage Arguments Details Value Examples

View source: R/rpubs_code.R

Description

Extract code from an RPubs article.

Usage

1
rpubs_code(url, path = NULL, output = FALSE)

Arguments

url

Character. URL of RPubs article, e.g. url = "https://rpubs.com/aephidayatuloh/sendgmail".

path

Character. File name for the extracted code as R script, e.g. code.R.

output

Logical. Should extraction include output of the code? Default to FALSE, means only R script will be extracted.

Details

If files = NULL then the extracted script will be print on console or as vector if you assign to an object. One code block is one element of vector.

Value

vector

Examples

1
rpubs_code(url = "https://rpubs.com/aephidayatuloh/sendgmail", path = NULL, output = FALSE)

rpubs documentation built on Feb. 6, 2020, 5:10 p.m.