Conversation
Co-authored-by: tin900 <113692500+tin900@users.noreply.github.com>
Co-authored-by: tin900 <113692500+tin900@users.noreply.github.com>
Updated pkgdown configuration and documentation. Added rubrics functions to NAMESPACE exports, created manual pages (.Rd files), and updated _pkgdown.yml with new rubrics section. The functions are now properly documented and will appear on the pkgdown website. (commit 453d600) Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: tin900 <113692500+tin900@users.noreply.github.com>
Updated both |
This PR implements comprehensive support for retrieving rubrics data from the Canvas LMS API, addressing the request in issue #19.
Changes Made
Added four new functions following the established package patterns:
Course-Level Rubrics
get_rubrics(canvas, course_id, per_page = 100)- Retrieves list of rubrics for a specific courseget_rubric(canvas, course_id, rubric_id)- Retrieves a single rubric by ID from a courseAccount-Level Rubrics
get_account_rubrics(canvas, account_id, per_page = 100)- Retrieves list of rubrics for a specific accountget_account_rubric(canvas, account_id, rubric_id)- Retrieves a single rubric by ID from an accountImplementation Details
All functions follow the established vvcanvas package conventions:
@exporttagshttr::GETfor HTTP requests andjsonlite::fromJSONfor parsingper_pageparameter)API Endpoints Covered
These functions implement the following Canvas API endpoints:
GET /api/v1/courses/:course_id/rubricsGET /api/v1/courses/:course_id/rubrics/:idGET /api/v1/accounts/:account_id/rubricsGET /api/v1/accounts/:account_id/rubrics/:idUsage Example
Files Added
R/get_rubrics.R- Course rubrics list functionR/get_rubric.R- Single course rubric functionR/get_account_rubrics.R- Account rubrics list functionR/get_account_rubric.R- Single account rubric functionUpdated
TODO.mdto mark the corresponding rubrics endpoints as implemented.Fixes #19.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.