Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bschneidr committed Sep 7, 2023
2 parents e8b8325 + b11668f commit 0abf420
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# svrep (development version)

* Bug Fixes:

* In cases where the `variables` component of a survey design object is not a tibble, an unnecessary error message would appear when calling `as_data_frame_with_weights()` with only one name supplied to the `vars_to_keep` argument.

* Changes specifically for CRAN check:

* Removed 12 unmarked UTF-8 strings causing a CRAN check note.
Expand Down
2 changes: 1 addition & 1 deletion R/as_data_frame_with_weights.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ as_data_frame_with_weights <- function(design, full_wgt_name = "FULL_SAMPLE_WGT"

if (!inherits(design, "DBIsvydesign")) {
if (!is.null(vars_to_keep)) {
survey_data <- design[['variables']][,vars_to_keep]
survey_data <- design[['variables']][, vars_to_keep, drop = FALSE]
} else {
survey_data <- design[['variables']]
}
Expand Down

0 comments on commit 0abf420

Please sign in to comment.