# NOT RUN {
dataset_ag_news()
# Custom directory
dataset_ag_news(dir = "data/")
# Deleting dataset
dataset_ag_news(delete = TRUE)
# Returning filepath of data
dataset_ag_news(return_path = TRUE)
# Access both training and testing dataset
train <- dataset_ag_news(split = "train")
test <- dataset_ag_news(split = "test")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab