{"id":21025766,"url":"https://github.com/koderkow/aocr","last_synced_at":"2026-05-18T12:08:20.210Z","repository":{"id":134309474,"uuid":"575296845","full_name":"KoderKow/aocr","owner":"KoderKow","description":"An R client for accessing Advent of Code’s data","archived":false,"fork":false,"pushed_at":"2022-12-07T15:06:10.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T21:23:13.852Z","etag":null,"topics":["r","rstats"],"latest_commit_sha":null,"homepage":"https://koderkow.github.io/aocr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KoderKow.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-07T07:34:53.000Z","updated_at":"2023-12-09T07:04:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"393631b8-88dc-47d8-b389-5ad8f75748fb","html_url":"https://github.com/KoderKow/aocr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KoderKow/aocr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KoderKow%2Faocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KoderKow%2Faocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KoderKow%2Faocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KoderKow%2Faocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KoderKow","download_url":"https://codeload.github.com/KoderKow/aocr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KoderKow%2Faocr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33177356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["r","rstats"],"created_at":"2024-11-19T11:36:33.406Z","updated_at":"2026-05-18T12:08:20.193Z","avatar_url":"https://github.com/KoderKow.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\",\n  cache = TRUE\n)\n```\n\n# aocr \n\n\u003c!-- \u003cimg src=\"man/figures/logo.png\" width=\"160px\" align=\"right\" /\u003e --\u003e\n\n\u003e 💻 An R client for accessing [Advent of Code](https://adventofcode.com/)'s data\n\n- This package will only help obtain data, it will not assist in posting solutions via HTTP request\n- All requests are cached to reduce the number of interactions with Advent of Code's website\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/KoderKow/aocr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/KoderKow/aocr/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n## Installation\n\nYou can install the dev version of **{aocr}** from [GitHub](https://github.com/koderkow/aocr) with:\n\n```{r, eval = FALSE}\ndevtools::install_packages(\"koderkow/aocr\")\n```\n\n# Load the package\n\n```{r pkg load}\nlibrary(aocr)\n```\n\n# Session ID\n\nA session ID is needed to get a proper response from the Advent of Code's website. To obtain and set this as an environment variable run `aoc_set_session_id()`.\n\n# Obtaining data\n\n## Tibble\n\nThere are currently two function for obtaining data for the Advent of Code challenges:\n\n```{r read data as tibble}\nd_init \u003c- aoc_get_data_as_tibble(2022, 1)\n\nhead(d_init)\n```\n\n## Raw response\n\nIf `aoc_get_data_as_tibble()` doesn't get the data in the right format, working with the response will be needed. [{httr2}](https://httr2.r-lib.org/) is the engine for making HTTP requests. Familiarity with that package will be needed to clean/parse the response.\n\n```{r read data as resp}\nresp \u003c- aoc_get_response(2022, 1)\n\nresp\n```\n\n# View the puzzle\n\nIf you need to view the puzzle's information to review or submit a solution it can be quickly pulled up via web browser:\n\n```{r view puzzle, eval=FALSE}\naoc_view_puzzle(2022, 1)\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoderkow%2Faocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoderkow%2Faocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoderkow%2Faocr/lists"}