tidytext: Retrieve raw R code tidytext tutorial

Description Usage Arguments Value Examples

View source: R/tidytext.R

Description

Retrieve raw R code tidytext tutorial

Usage

1
2
3
tidytext(url, method, padding)

tidytextmining(url, method, padding = "\n\n")

Arguments

url

Link to tidytext tutorial

method

Not all websites are formatted consistently. To overcome this, try a different method by setting the method parameter to integers 2 and greater to try other available methods

padding

Specify what goes between the last character of one code block and the first character of the next code block. Default is a two new lines, which appears visually as one new line between codeblocks.

Value

A character vector of length 1 containing the R code from the target url.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(dplyr)

constructed_url <- paste0("https://cran.r-project.org/web/packages/",
 "tidytext/vignettes/tidytext.html")
tidytext(constructed_url) %>%
  cat

## End(Not run)

rawr documentation built on May 17, 2021, 5:07 p.m.

Related to tidytext in rawr...