R/unix/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname){
  ## this stuff needed to make Fame work
  ## just why Fame needs stuff from the Motif/LessTif library to work when
  ## there's no user interface involved is a question that will undoubtedly be
  ## pondered for the ages.
  libPath <- Sys.getenv("LD_LIBRARY_PATH")
  XmLib <- "/usr/lib/X11/../libXm.so"
  linkDir <- tempdir()
  tmpLink <- file.path(linkDir, "libXm.so.1")
  system(paste("ln -s", XmLib, tmpLink))
  Sys.setenv("LD_LIBRARY_PATH" = paste(libPath, linkDir, sep = ":"))
  Sys.setenv("FAME_EXPIRATION" = 0)
}

Try the fame package in your browser

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

fame documentation built on Nov. 6, 2021, 1:06 a.m.