R/zzz.R

#' @importFrom glue glue
.onLoad <- function(libname, pkgname) {
  path <- find.package('Wishbone')
  if(!dir.exists(glue::glue("{path}/venv"))) {
    reinstall()
  }
}

#' @importFrom glue glue
reinstall <- function() {
  path <- find.package('Wishbone')
  system(glue::glue("bash {path}/make {path}/venv"))
}
dynverse/Wishbone documentation built on May 7, 2019, 2:55 a.m.