inst/aaa.R

.onAttach <- function(libname, pkgname) {

  # Assign default values ---------------------------------------------------

  dmdScheme::scheme_repo(
    repo = "https://github.com/Exp-Micro-Ecol-Hub/dmdSchemeRepository/raw/master/"
  )

  dmdScheme::scheme_default(
    name = "XXXyyyschemNameyyyXXX",
    version = "XXXyyyschemVersionyyyXXX"
  )

  # Install and Use default scheme ------------------------------------------

  if (
    !dmdScheme::scheme_installed(
      name = dmdScheme::scheme_default()$name,
      version = dmdScheme::scheme_default()$version
    )
  ) {
    dmdScheme::scheme_install(
      name = dmdScheme::scheme_default()$name,
      version = dmdScheme::scheme_default()$version,
      repo = scheme_repo())
  }

  dmdScheme::scheme_use(
    name = dmdScheme::scheme_default()$name,
    version = dmdScheme::scheme_default()$version
  )

}

Try the dmdScheme package in your browser

Any scripts or data that you put into this service are public.

dmdScheme documentation built on Aug. 22, 2022, 9:06 a.m.