Skip to content

Commit

Permalink
Fix zzz.R swallowing error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu committed Jan 13, 2020
1 parent 5015d9b commit eb75b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R-package/R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ NULL
.onLoad <- function(libname, pkgname) {
# Require methods for older versions of R
require(methods)
tryCatch(library.dynam("libmxnet", pkgname, libname, local=FALSE), error = function(e) { print('Loading local: inst/libs/libmxnet.so'); dyn.load("R-package/inst/libs/libmxnet.so", local=FALSE) })
tryCatch(library.dynam("mxnet", pkgname, libname), error = function(e) { print('Loading local: src/mxnet.so'); dyn.load("R-package/src/mxnet.so") })
library.dynam("libmxnet", pkgname, libname, local=FALSE)
library.dynam("mxnet", pkgname, libname)
loadModule("mxnet", TRUE)
init.symbol.methods()
init.context.default()
Expand Down

0 comments on commit eb75b60

Please sign in to comment.