File: lists.R

package info (click to toggle)
r-cran-rtweet 1.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,224 kB
  • sloc: sh: 13; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
lists_params <- function(list_id = NULL, slug = NULL, owner_user = NULL, ...) {
  params <- list(...)

  if (is.null(list_id) && !is.null(slug) & !is.null(owner_user)) {
    params$slug <- slug
    params[[paste0("owner_", user_type(owner_user, "owner_user"))]] <- owner_user
  } else {
    params$list_id <- list_id
  }
  params
}