2019-05-31 22:13:24 +00:00
|
|
|
.onLoad <- function(libname, pkgname) {
|
2019-06-30 22:07:29 +00:00
|
|
|
# rJava expects a folder called 'java' to be present in the root of the
|
|
|
|
# package directory; but this isn't true when devtools::test() is run (instead
|
|
|
|
# it's in the inst folder which won't be present if the package was actually
|
|
|
|
# loaded from the R library). Thus with morePaths we make sure it loads up the
|
|
|
|
# jar in this situation.
|
2019-07-23 18:18:40 +00:00
|
|
|
.jpackage(pkgname, lib.loc=libname, morePaths="inst/java/largeRCRF-library-1.0-SNAPSHOT.jar")
|
2019-06-30 22:07:29 +00:00
|
|
|
|
2019-05-31 22:13:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#' @import rJava
|
|
|
|
NULL
|