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 6f38f96 commit ceeb7bbCopy full SHA for ceeb7bb
R/setup.R
@@ -179,6 +179,9 @@ ensure_renv_precommit_compat <- function(package_version_renv = utils::packageVe
179
} else {
180
withr::local_dir(root)
181
path_config <- ".pre-commit-config.yaml"
182
+ if (!file_exists(path_config)) {
183
+ return()
184
+ }
185
config_lines <- readLines(path_config, encoding = "UTF-8")
186
has_renv <- fs::file_exists("renv.lock")
187
if (!has_renv) {
0 commit comments