rawr (version 0.1.0)

kaggle: Retrieve raw R code from a kaggle notebook

Description

Retrieve raw R code from a kaggle notebook

Usage

kaggle(url)

Arguments

url

Link to a kaggle notebook

Value

A character vector of length 1 containing the R code from the target url. Returned value will contain rmarkdown or python code if that was the language used in the kaggle notebook.

Examples

Run this code
# NOT RUN {
library(dplyr)
kaggle("https://www.kaggle.com/vrtjso/mercari-eda-more-info-than-you-can-imagine")
kaggle("https://www.kaggle.com/captcalculator/a-very-extensive-mercari-exploratory-analysis")
kaggle("https://www.kaggle.com/adityaecdrid/mnist-with-keras-for-beginners-99457")

# Same as above but provided to cat for easy viewing

# R
kaggle("https://www.kaggle.com/vrtjso/mercari-eda-more-info-than-you-can-imagine")  %>%
  cat

# rmarkdown
kaggle("https://www.kaggle.com/captcalculator/a-very-extensive-mercari-exploratory-analysis") %>%
  cat

# python
kaggle("https://www.kaggle.com/adityaecdrid/mnist-with-keras-for-beginners-99457") %>%
  cat
# }

Run the code above in your browser using DataLab