Skip to content

Commit 58d9f51

Browse files
committed
add default values for max_length in certain cases
formula, data frame, matrix
1 parent 7a4ffba commit 58d9f51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/entity_class.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ setMethod(f="initialize",
8383
.Object@value=new(.Object@type)
8484
}
8585
}
86-
validObject(.Object)
86+
if ((.Object@type %in% c('data.frame','formula','matrix')) && !('max_length' %in% names(L))) {
87+
validObject(.Object)
88+
}
8789
return(.Object)
8890
}
8991
)

0 commit comments

Comments
 (0)