check_pkgs_availability | R Documentation |
Check whether packages are available in current library.
check_pkgs_availability(pkgs, quietly = TRUE)
pkgs |
Character vector of package names. (Typically the output from
|
quietly |
logical: should progress and error messages be suppressed? |
Named logical vector indicating whether each package is available on the machine.
library(funspotr)
library(dplyr)
file_lines <- "
library(dplyr)
require(tidyr)
library(madeUpPkg)
as_tibble(mpg) %>%
group_by(class) %>%
nest() %>%
mutate(stats = purrr::map(data,
~lm(cty ~ hwy, data = .x)))
made_up_fun()
"
file_output <- tempfile(fileext = ".R")
writeLines(file_lines, file_output)
spot_pkgs(file_output) %>%
check_pkgs_availability()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.