Debian Codegraph @

R/nexus.R

raw
1
2 renv_nexus_enabled <- function(repo) {
3
4 # first, check a global option
5 enabled <- getOption("renv.nexus.enabled", default = FALSE)
6 if (enabled)
7 return(TRUE)
8
9 # otherwise, check cached repository information
10 info <- renv_repos_info(repo)
11 identical(info$nexus, TRUE)
12
13 }