R/zzz.R

Defines functions .onAttach .onLoad wenv_init

wenv <- new.env()

wenv_init <- function(){
    assign('tex'   , FALSE ,envir = wenv)
    assign('get'   , FALSE ,envir = wenv)
    assign('build' , FALSE ,envir = wenv)
}

.onLoad <- function(lib,pkg) {
  wenv_init()
  if(interactive()){
    check_requirements()
    rc.options(custom.completer = completeme)
    register_completion(thispkg = populate) 
  }
  register_eng_texpreview('texpreview', eng_texpreview)
}


.onAttach <- function(lib,pkg) {
  wenv_init()
  if(interactive()){
    check_requirements()
    rc.options(custom.completer = completeme)
    register_completion(thispkg = populate) 
  }
}

Try the texPreview package in your browser

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

texPreview documentation built on March 31, 2022, 9:05 a.m.