Skip to content

Commit

Permalink
Update zzz.R
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Nov 9, 2023
1 parent 310bd9c commit f1fbff7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,9 @@ settings <- new.env(parent = emptyenv())
toset <- !(names(op_lintr) %in% names(op))
if (any(toset)) options(op_lintr[toset])

# R>=3.6.0: str2expression, str2lang
# R>=4.0.0: deparse1
# R>=4.1.0: ...names
backports::import(pkgname, c("deparse1", "...names"))
base_ns <- getNamespace("base")
backports_ns <- getNamespace("backports")
lintr_ns <- getNamespace(pkgname)
for (base_fun in c("str2lang", "str2expression")) {
if (!exists(base_fun, base_ns)) {
assign(base_fun, get(base_fun, backports_ns), lintr_ns)
}
}

utils::assignInMyNamespace("default_settings", list(
linters = default_linters,
Expand Down

0 comments on commit f1fbff7

Please sign in to comment.