tests/startup.R

library("R.matlab")

.onAttach <- R.matlab:::.onAttach
.onLoad <- R.matlab:::.onLoad
.onUnload <- R.matlab:::.onUnload

message("Startup and shutdown code ...")

pkgname <- "R.matlab"
libname <- pkgname
libpath <- dirname(system.file(package = pkgname))

res <- tryCatch({
  .onUnload(libpath)
}, error = identity)
print(res)

res <- tryCatch({
  .onLoad(libname, pkgname)
}, error = identity)
print(res)

res <- tryCatch({
  .onAttach(libname, pkgname)
}, error = identity)
print(res)

message("Startup and shutdown code ... DONE")

Try the R.matlab package in your browser

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

R.matlab documentation built on Aug. 26, 2022, 1:07 a.m.