We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac12b3c commit de0767dCopy full SHA for de0767d
R/utils-list.R
@@ -34,12 +34,7 @@ strip_pts <- function(list, param){
34
for (v in param){
35
if (v %in% names(list) && !inherits(list[[v]], c('function','formula'))) {
36
v.vals <- list[[v]]
37
- # append to out without losing timezones when it is a date/POSIX
38
- if(is.null(out)){
39
- out <- v.vals
40
- } else {
41
- out <- append(out, v.vals)
42
- }
+ out <- append_keepclass(out, v.vals)
43
out.class <- ifelse(!all(is.na(v.vals)), class(v.vals), out.class)
44
} else {
45
if (any(sapply(list, is.list))){
0 commit comments