Add list_course_rubrics() function to retrieve course rubrics from Canvas API #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements the
list_course_rubrics()function to retrieve all rubrics attached to a course from the Canvas LMS API, as requested in the feature request.🎯 What's Added
New Function:
list_course_rubrics()GET /api/v1/courses/:course_id/rubricscanvas- API authentication objectcourse_id- Course ID (required)include- Optional parameter for additional data ("associations","rubric_assessments", or vector)per_page- Pagination support (default 100)Usage Examples
📁 Files Changed
R/list_course_rubrics.R- Main function implementationman/list_course_rubrics.Rd- R help documentationNAMESPACE- Export declaration addedTODO.md- Endpoint marked as implemented ✅_pkgdown.yml- Added "Rubrics" section to documentation site🔧 Implementation Details
Follows vvcanvas Patterns
get_assignments()andlist_all_enrollment_terms()Robust Error Handling
canvasandcourse_idFeature Support
"associations"- Include rubric associations"rubric_assessments"- Include rubric assessmentsper_pageparameter (default 100)course_id✅ Quality Assurance
The function is ready for production use and provides comprehensive access to Canvas course rubrics with full metadata support.
Fixes #24.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 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.