createAssignment: Create a new assignment

View source: R/createAssignment.R

createAssignmentR Documentation

Create a new assignment

Description

Create a new assignment for the provided course.

Usage

createAssignment(
  courseID,
  name,
  description = "",
  points_possible = "",
  type = "online",
  online_type = c("online_upload", "online_text_entry"),
  allowed_extensions = c("doc", "docx", "pdf", "ppt", "pptx", "rtf"),
  grading_type = "points",
  assignment_group_id = "",
  grading_standard_id = "",
  group_category_id = "",
  due_at = "",
  lock_at = "",
  unlock_at = "",
  published = FALSE,
  turnitin_enabled = FALSE,
  turnitin_settings = NULL,
  peer_reviews = FALSE,
  automatic_peer_reviews = FALSE,
  notify_of_update = FALSE,
  muted = FALSE,
  grade_group_students_individual = FALSE,
  ext_tool_url = NULL,
  ext_tool_new_tab = FALSE,
  server = "test",
  ...
)

Arguments

courseID

Course ID to create the assignment in.

name

Character of the name of the assignment

description

Character description of the assignments, supports HTML.

points_possible

Integer of the maximum number of points possible

type

One character of assignment type ("online","none", "on_paper", "online_quiz", "discussion_topic", "external_tool")

online_type

If type is "online", vector of online types ("online_upload", "online_text_entry", "online_url", "media_recording")

allowed_extensions

Character of the extensions allowed for file submissions for "online_upload"

grading_type

Character of grading type options (pass_fail, percent, letter_grade, gpa_scale, points)

assignment_group_id

Integer of the assignment group to put assignment in.

grading_standard_id

ID of the grading standard to be used

group_category_id

ID of group to assign discussion to.

due_at

POSIXct object of date and time of due date

lock_at

POSIXct object of date and time of lock date

unlock_at

POSIXct object of date and time of unlock date

published

Boolean to specify if the assignment is published for availability.

turnitin_enabled

Boolean to specify whether to use the Turnitin API.

turnitin_settings

Named list of turnitin settings.

peer_reviews

Boolean to enable peer reviews

automatic_peer_reviews

Boolean to enable automatically assign peer reviewers

notify_of_update

Boolean to notify students that assignment content has changed.

muted

Boolean to mute assignment or not

grade_group_students_individual

Boolean to say group students will be graded individually.

ext_tool_url

Character of external tool url if type is "external_tool".

ext_tool_new_tab

Boolean of whether ext tool opens in new tab.

server

Test, beta, production, or other name in R.environ OR full url of server

...

Optional page options to pass to processRequest


erikpal/bRush documentation built on May 9, 2023, 8:27 p.m.