archive_asgmts: Archive or unarchive assignments on the server

Description Usage Arguments Value Examples

View source: R/archive_asgmts.R

Description

archive_asgmts archives the assignments corresponding to the ID number(s) provided. unarchive_asgmts unarchive the assignments corresponding to the ID number(s) provided.

Usage

1
2
3
archive_asgmts(ids = NULL, server = "", user = "", password = "")

unarchive_asgmts(ids = NULL, server = "", user = "", password = "")

Arguments

ids

Assignment IDs to archive or unarchive. This accepts a vector so multiple assignments can be archived or unarchived at once.

server

Prefix for the survey server. It is whatever comes before mysurvey.solutions: [prefix].mysurvey.solutions.

user

Username for the API user on the server.

password

Password for the API user on the server.

Value

Assignments corresponding to the ID number provided are archived or unarchived.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## archive assignments with ID numbers 4, 18, 195
## Not run: 
archive_asgmts(ids = c(4, 18, 195), server = "lfs2018",
user = "APIuser2018", password = "SafePassword123")

## End(Not run)
## unarchive assignments with ID numbers 4, 18, 195
## Not run: 
unarchive_asgmts(ids = c(4, 18, 195), server = "lf2018",
user = "APIuser2018", password = "SafePassword123")

## End(Not run)

l2nguyen/susoapir documentation built on Jan. 14, 2020, 2:29 p.m.