renv_warnings_unknown_sources <- function(records) {
if (empty(records))
return(FALSE)
enabled <- renv_config_get(
name = "unknown_sources",
scope = "warnings",
type = "logical[1]",
default = TRUE
)
if (!enabled)
return(FALSE)
renv_pretty_print_records(
records,
"The following package(s) were installed from an unknown source:",
c(
"renv may be unable to restore these packages in the future.",
"Consider re-installing these packages from a known source (e.g. CRAN)."
)
)
return(TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.