Skip to content

Commit

Permalink
Merge pull request #347 from pharmaR/ni-341-pkg_ref_bug
Browse files Browse the repository at this point in the history
Fixes bug for list inputs to pkg_ref()
  • Loading branch information
emilliman5 authored Sep 17, 2024
2 parents 40365ce + abce274 commit 45963e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pkg_ref_class.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ as_pkg_ref <- function(x, ...) {
source <- ifelse(length(dots$source) > 1, dots$source[i], dots$source)
else source <- NULL

pkg_ref_list[[i]] <- as_pkg_ref(x[i], source=source)
pkg_ref_list[[i]] <- as_pkg_ref(x[[i]], source=source)
}

return(vctrs::new_list_of(pkg_ref_list, ptype = pkg_ref(), class = "list_of_pkg_ref"))
Expand Down

0 comments on commit 45963e1

Please sign in to comment.