File: zzz.R

package info (click to toggle)
r-cran-hdf5 1.6.4-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 280 kB
  • ctags: 68
  • sloc: ansic: 1,540; sh: 30; makefile: 1
file content (15 lines) | stat: -rw-r--r-- 325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.noGenerics <- TRUE

.onLoad <- function(lib, pkg)
{
  opath <-  Sys.getenv("PATH")
  libbin <- file.path(R.home(), "library/hdf5/libs")
  Sys.putenv(PATH=paste(libbin, opath, sep=";"))
  library.dynam("hdf5", pkg, lib)
  Sys.putenv(PATH=opath)
}

.onUnload <- function (libpath)
{
   library.dynam.unload("hdf5", libpath)
}