knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(kaggler)

API key setup

1. Go to https://www.kaggle.com/ and sign in

2. Click Account or navigate to https://www.kaggle.com/{username}/account

3. Scroll down to the API section and click Create New API Token (which should cause you to download a kaggle.json file with your username and API key)

knitr::include_graphics("../man/figures/kag.png")

4. Save the kaggle.json file in a location you can easily locate the path for such as the Downloads/ folder

5. Copy the kaggle.json file to ~/.kaggle/kaggle.json

6. Thats it! When calling any of the {kaggler} functions the authorization function will check for that file and create an environment variable, KAGGLE_PAT, in your .Renviron file

Next steps

This section is still under development! 👷

Interact with the API

Kaggle Flow

Kaggle Flow

Kaggle Flow



KoderKow/kaggler documentation built on Aug. 26, 2023, 11:27 a.m.