rawr (version 0.1.0)

datacamp: Retrieve raw R code from a datacamp tutorial

Description

Retrieve raw R code from a datacamp tutorial

Usage

datacamp(url)

Arguments

url

Link to datacamp tutorial

Value

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

Examples

Run this code
# NOT RUN {
library(dplyr)
datacamp("https://www.datacamp.com/community/tutorials/sentiment-analysis-R")
datacamp("https://www.datacamp.com/community/tutorials/R-nlp-machine-learning")

# Same as above but provided to cat for easy viewing
datacamp("https://www.datacamp.com/community/tutorials/sentiment-analysis-R") %>%
  cat
datacamp("https://www.datacamp.com/community/tutorials/R-nlp-machine-learning") %>%
  cat
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab