extractCode-deprecated: Extract Code From Rpubs Article

Description Usage Arguments Details Value Examples

Description

(Deprecated) Extract code from an Rpubs <https://rpubs.com/> article. These functions still work but will be removed (defunct) in the next version.

Usage

1
extractCode(url, files = NULL, output = FALSE)

Arguments

url

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

files

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
extractCode(url = "http://rpubs.com/aephidayatuloh/sendgmail", file = NULL, output = FALSE)

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