From f87c90d526f79518a02788bb0ca964ebd00f9331 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 10 Mar 2023 18:09:25 +0100 Subject: [PATCH] automatic lintr --- R/find_offset.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/find_offset.R b/R/find_offset.R index ce773d15a..45166f709 100644 --- a/R/find_offset.R +++ b/R/find_offset.R @@ -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)