Skip to content

Commit

Permalink
automatic lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 10, 2023
1 parent d66d565 commit f87c90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/find_offset.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ find_offset <- function(x) {
# if we have to implement too many model-specific workarounds, it may eventually be worth it to do S3
# VAB: no test because I can only replicate in a weird {etwfe} example
if (inherits(x, "fixest")) {
if (is.null(offset) || isTRUE(grepl("^\\.\\.", offset))) {
if (is.null(offset) || startsWith(offset, "..")) {
offset <- clean_names(x[["model_info"]][["offset"]])
}
offset <- sub("^~", "", offset)
Expand Down

0 comments on commit f87c90d

Please sign in to comment.