Learn R Programming

rawr (version 0.1.1)

tidytext: Retrieve raw R code tidytext tutorial

Description

Retrieve raw R code tidytext tutorial

Usage

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

Run this code
# NOT RUN {
library(dplyr)
tidytext("https://www.tidytextmining.com/sentiment.html")

# Same as above but provided to cat for easy viewing
tidytext("https://www.tidytextmining.com/sentiment.html") %>%
  cat


# }

Run the code above in your browser using DataLab