Skip to content

Commit

Permalink
Bugfix & tests for fetch_survey() when include_* = NA, closes #272 (#277
Browse files Browse the repository at this point in the history
)

* Bugfix & tests for fetch_survey() when include_* = NA

* Update NEWS

Co-authored-by: Julia Silge <[email protected]>
  • Loading branch information
jmobrien and juliasilge authored Aug 18, 2022
1 parent e05f46f commit 107738a
Show file tree
Hide file tree
Showing 4 changed files with 834 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- Refactored code for checking arguments and errors, thanks to @jmobrien (#263)

- Fixed bug in `fetch_survey()` for `include_* = NA`, thanks to @jmobrien (#277)

# qualtRics 3.1.6

- Add `fetch_distribution_history()` and `list_distribution_links()` for more handling of distribution data, thanks to @chrisumphlett and @dsen6644 (#221, #239)
Expand Down
5 changes: 3 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ create_raw_payload <-

# Make list of params, dropping NULL's:
params <-
purrr::compact(
list(...)
purrr::discard(
list(...),
is.null
)

# Selectively mark length-1 parameters for unboxing, following the API scheme:
Expand Down
Loading

0 comments on commit 107738a

Please sign in to comment.