createDiscussionTopic: Create a new discussion

View source: R/createDiscussionTopic.R

createDiscussionTopicR Documentation

Create a new discussion

Description

Create a new discusson for the provided course or group.

Usage

createDiscussionTopic(
  ID,
  title,
  message = "",
  discussion_type = "side_comment",
  published = FALSE,
  podcast_enabled = FALSE,
  podcast_has_student_posts = FALSE,
  require_initial_post = FALSE,
  is_announcement = FALSE,
  pinned = FALSE,
  allow_rating = FALSE,
  only_graders_can_rate = FALSE,
  sort_by_rating = FALSE,
  delayed_post_at = "",
  lock_at = "",
  position_after = NULL,
  group_category_id = NULL,
  points_possible = NULL,
  peer_reviews = FALSE,
  automatic_peer_reviews = FALSE,
  grading_type = "points",
  grading_standard_id = NULL,
  due_at = "",
  unlock_at = "",
  server = "test",
  ...
)

Arguments

ID

Course or group ID to create the discussion in.

title

Character of the title of the assignment

message

Character of the discussion message.

discussion_type

Character of the discussion type ("side_comment" or "threaded")

published

Boolean to specify if the discussion is published for availability.

podcast_enabled

Boolean to enable podcast feed.

podcast_has_student_posts

Boolean to include student replies in podcast feed.

require_initial_post

Boolean to specify if user must post first to begin to reply.

is_announcement

Boolean to specify if this is an announcment instead of a discussion.

pinned

Boolean to list as a pinned discussion.

allow_rating

Boolean to allow users to rate entries.

only_graders_can_rate

Boolean to allow only graders to rate.

sort_by_rating

Boolean to sort by rating.

delayed_post_at

POSIXct object of date and time to publish discussion.

lock_at

POSIXct object of date and time of lock date if an assignment

position_after

ID of discussion topic to position this one after.

group_category_id

ID of group to assign discussion to.

points_possible

Integer of the maximum number of points possible

peer_reviews

Boolean to enable peer reviews

automatic_peer_reviews

Boolean to enable automatically assign peer reviewers

grading_type

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

grading_standard_id

ID of the grading standard to be used

due_at

POSIXct object of date and time of due date if an assignment

unlock_at

POSIXct object of date and time of unlock date if an assignment

server

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

...

Optional page options to pass to processRequest if an assignment


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