R/zzz-libs.R

Defines functions renv_zzz_libs_impl renv_zzz_libs

renv_zzz_libs <- function() {
 
  status <- tryCatch(
    renv_zzz_libs_impl(),
    error = identity
  )
  
}

renv_zzz_libs_impl <- function() {
  
  if (!installing() || !renv_ext_enabled())
    return(FALSE)
  
  message("** libs")
  package <- Sys.getenv("R_PACKAGE_DIR", unset = getwd())
  renv_ext_compile(package)
  
  TRUE
  
}

renv_zzz_libs()
rstudio/renv documentation built on Nov. 20, 2024, 7:34 a.m.